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 |
|
{ |
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) { |