# | 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) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |