--- jsr166/src/jsr166x/ArrayDeque.java 2009/11/16 04:16:42 1.3 +++ jsr166/src/jsr166x/ArrayDeque.java 2009/11/24 03:57:04 1.4 @@ -676,10 +676,10 @@ public class ArrayDeque extends Abstr * in the correct order. * * @return an array containing all of the elements in this list - * in the correct order + * in the correct order */ public Object[] toArray() { - return copyElements(new Object[size()]); + return copyElements(new Object[size()]); } /** @@ -694,8 +694,8 @@ public class ArrayDeque extends Abstr * immediately following the end of the collection is set to null. * * @param a the array into which the elements of the deque are to - * be stored, if it is big enough; otherwise, a new array of the - * same runtime type is allocated for this purpose + * be stored, if it is big enough; otherwise, a new array of the + * same runtime type is allocated for this purpose * @return an array containing the elements of the deque * @throws ArrayStoreException if the runtime type of a is not a supertype * of the runtime type of every element in this deque @@ -705,7 +705,7 @@ public class ArrayDeque extends Abstr if (a.length < size) a = (T[])java.lang.reflect.Array.newInstance( a.getClass().getComponentType(), size); - copyElements(a); + copyElements(a); if (a.length > size) a[size] = null; return a;