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.35 by jsr166, Tue Oct 18 22:15:15 2016 UTC

# Line 104 | Line 104 | import java.util.function.UnaryOperator;
104   * @see     Vector
105   * @since   1.2
106   */
107
107   public class ArrayList<E> extends AbstractList<E>
108          implements List<E>, RandomAccess, Cloneable, java.io.Serializable
109   {
# Line 1516 | Line 1515 | public class ArrayList<E> extends Abstra
1515                  throw new ConcurrentModificationException();
1516              return deleted > 0;
1517          } catch (Throwable ex) {
1518 <            for (; remaining > 0; remaining--, r++, w++)
1519 <                elementData[w] = elementData[r];
1518 >            if (deleted > 0)
1519 >                for (; remaining > 0; remaining--, r++, w++)
1520 >                    elementData[w] = elementData[r];
1521              throw ex;
1522          } finally {
1523              if (deleted > 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines