--- jsr166/src/main/java/util/ArrayList.java 2006/04/21 20:49:03 1.20
+++ jsr166/src/main/java/util/ArrayList.java 2006/06/26 01:38:57 1.22
@@ -66,7 +66,7 @@ package java.util;
* should be used only to detect bugs.
*
* This class is a member of the
- *
+ *
* Java Collections Framework.
*
* @author Josh Bloch
@@ -135,16 +135,6 @@ public class ArrayList extends Abstra
elementData = Arrays.copyOf(elementData, size, Object[].class);
}
- private void initFromConcurrentlyMutating(Collection extends E> c) {
- elementData = c.toArray();
- size = elementData.length;
- // c.toArray might (incorrectly) not return Object[] (see 6260652)
- if (elementData.getClass() != Object[].class)
- elementData = Arrays.copyOf(elementData, size, Object[].class);
- }
-
- private final static Object UNALLOCATED = new Object();
-
/**
* Trims the capacity of this ArrayList instance to be the
* list's current size. An application can use this operation to minimize