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:
Xueming Shen 2009-03-04 09:26:41 -08:00
parent bfa69d72f5
commit a2b97ae3ec

View File

@ -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;