6812879: Excess code line in ArrayList method
Removed the line of "oldData" which is no longer used. Reviewed-by: martin
This commit is contained in:
parent
bfa69d72f5
commit
a2b97ae3ec
@ -179,7 +179,6 @@ public class ArrayList<E> extends AbstractList<E>
|
||||
modCount++;
|
||||
int oldCapacity = elementData.length;
|
||||
if (minCapacity > oldCapacity) {
|
||||
Object oldData[] = elementData;
|
||||
int newCapacity = (oldCapacity * 3)/2 + 1;
|
||||
if (newCapacity < minCapacity)
|
||||
newCapacity = minCapacity;
|
||||
|
Loading…
x
Reference in New Issue
Block a user