From a2b97ae3ece575d32997a4037b36af710900be6b Mon Sep 17 00:00:00 2001 From: Xueming Shen Date: Wed, 4 Mar 2009 09:26:41 -0800 Subject: [PATCH] 6812879: Excess code line in ArrayList method Removed the line of "oldData" which is no longer used. Reviewed-by: martin --- jdk/src/share/classes/java/util/ArrayList.java | 1 - 1 file changed, 1 deletion(-) diff --git a/jdk/src/share/classes/java/util/ArrayList.java b/jdk/src/share/classes/java/util/ArrayList.java index 6eeb2a4fc2a..dbd46096bf3 100644 --- a/jdk/src/share/classes/java/util/ArrayList.java +++ b/jdk/src/share/classes/java/util/ArrayList.java @@ -179,7 +179,6 @@ public class ArrayList extends AbstractList modCount++; int oldCapacity = elementData.length; if (minCapacity > oldCapacity) { - Object oldData[] = elementData; int newCapacity = (oldCapacity * 3)/2 + 1; if (newCapacity < minCapacity) newCapacity = minCapacity;