ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166x/ArrayDeque.java
(Generate patch)

Comparing jsr166/src/jsr166x/ArrayDeque.java (file contents):
Revision 1.3 by jsr166, Mon Nov 16 04:16:42 2009 UTC vs.
Revision 1.4 by jsr166, Tue Nov 24 03:57:04 2009 UTC

# Line 676 | Line 676 | public class ArrayDeque<E> extends Abstr
676       * in the correct order.
677       *
678       * @return an array containing all of the elements in this list
679 <     *         in the correct order
679 >     *         in the correct order
680       */
681      public Object[] toArray() {
682 <        return copyElements(new Object[size()]);
682 >        return copyElements(new Object[size()]);
683      }
684  
685      /**
# Line 694 | Line 694 | public class ArrayDeque<E> extends Abstr
694       * immediately following the end of the collection is set to <tt>null</tt>.
695       *
696       * @param a the array into which the elements of the deque are to
697 <     *          be stored, if it is big enough; otherwise, a new array of the
698 <     *          same runtime type is allocated for this purpose
697 >     *          be stored, if it is big enough; otherwise, a new array of the
698 >     *          same runtime type is allocated for this purpose
699       * @return an array containing the elements of the deque
700       * @throws ArrayStoreException if the runtime type of a is not a supertype
701       *         of the runtime type of every element in this deque
# Line 705 | Line 705 | public class ArrayDeque<E> extends Abstr
705          if (a.length < size)
706              a = (T[])java.lang.reflect.Array.newInstance(
707                      a.getClass().getComponentType(), size);
708 <        copyElements(a);
708 >        copyElements(a);
709          if (a.length > size)
710              a[size] = null;
711          return a;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines