6812879: Excess code line in ArrayList method
Summary: Removed the line of "oldData" which is no longer used.
Reviewed-by: martin
--- a/jdk/src/share/classes/java/util/ArrayList.java Wed Mar 04 13:36:33 2009 +0000
+++ b/jdk/src/share/classes/java/util/ArrayList.java Wed Mar 04 09:26:41 2009 -0800
@@ -179,7 +179,6 @@
modCount++;
int oldCapacity = elementData.length;
if (minCapacity > oldCapacity) {
- Object oldData[] = elementData;
int newCapacity = (oldCapacity * 3)/2 + 1;
if (newCapacity < minCapacity)
newCapacity = minCapacity;