6812879: Excess code line in ArrayList method
authorsherman
Wed, 04 Mar 2009 09:26:41 -0800
changeset 2178 5a730fff4d0d
parent 2177 0591e7419c70
child 2179 e172c13ca87a
child 2290 3a3bde061968
6812879: Excess code line in ArrayList method Summary: Removed the line of "oldData" which is no longer used. Reviewed-by: martin
jdk/src/share/classes/java/util/ArrayList.java
--- 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;