ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/ArrayList.java
(Generate patch)

Comparing jsr166/src/main/java/util/ArrayList.java (file contents):
Revision 1.33 by jsr166, Mon Oct 17 21:46:27 2016 UTC vs.
Revision 1.34 by jsr166, Tue Oct 18 17:31:18 2016 UTC

# Line 1516 | Line 1516 | public class ArrayList<E> extends Abstra
1516                  throw new ConcurrentModificationException();
1517              return deleted > 0;
1518          } catch (Throwable ex) {
1519 <            for (; remaining > 0; remaining--, r++, w++)
1520 <                elementData[w] = elementData[r];
1519 >            if (deleted > 0)
1520 >                for (; remaining > 0; remaining--, r++, w++)
1521 >                    elementData[w] = elementData[r];
1522              throw ex;
1523          } finally {
1524              if (deleted > 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines