# | Line 6 | Line 6 | |
---|---|---|
6 | */ | |
7 | ||
8 | package java.util; | |
9 | – | import java.util.*; // for javadoc (till 6280605 is fixed) |
9 | ||
10 | /** | |
11 | * Resizable-array implementation of the <tt>List</tt> interface. Implements | |
# | Line 190 | Line 189 | public class ArrayList<E> extends Abstra | |
189 | */ | |
190 | private void growArray(int minCapacity) { | |
191 | if (minCapacity < 0) // overflow | |
192 | < | throw new OutOfMemoryError(); |
192 | > | throw new OutOfMemoryError(); |
193 | int oldCapacity = elementData.length; | |
194 | // Double size if small; else grow by 50% | |
195 | int newCapacity = ((oldCapacity < 64)? |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |