changeset 934:6568cd51ae12

6812879: Excess code line in ArrayList method Summary: Removed the line of "oldData" which is no longer used. Reviewed-by: martin
author sherman
date Wed, 04 Mar 2009 09:26:41 -0800
parents 03001e92d155
children 97da21737d9e 3b6d7e15ccd9
files src/share/classes/java/util/ArrayList.java
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/ArrayList.java	Wed Mar 04 13:36:33 2009 +0000
+++ b/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;