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

Comparing jsr166/src/main/java/util/ArrayDeque.java (file contents):
Revision 1.30 by jsr166, Sun May 18 23:47:55 2008 UTC vs.
Revision 1.33 by jsr166, Fri Jun 10 00:20:44 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Josh Bloch of Google Inc. and released to the public domain,
3 < * as explained at http://creativecommons.org/licenses/publicdomain.
3 > * as explained at http://creativecommons.org/publicdomain/zero/1.0/.
4   */
5  
6   package java.util;
7 import java.io.*;
7  
8   /**
9   * Resizable-array implementation of the {@link Deque} interface.  Array
# Line 52 | Line 51 | import java.io.*;
51   * @param <E> the type of elements held in this collection
52   */
53   public class ArrayDeque<E> extends AbstractCollection<E>
54 <                           implements Deque<E>, Cloneable, Serializable
54 >                           implements Deque<E>, Cloneable, java.io.Serializable
55   {
56      /**
57       * The array in which the elements of the deque are stored.
# Line 749 | Line 748 | public class ArrayDeque<E> extends Abstr
748       * The following code can be used to dump the deque into a newly
749       * allocated array of <tt>String</tt>:
750       *
751 <     * <pre>
753 <     *     String[] y = x.toArray(new String[0]);</pre>
751 >     *  <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
752       *
753       * Note that <tt>toArray(new Object[0])</tt> is identical in function to
754       * <tt>toArray()</tt>.
# Line 805 | Line 803 | public class ArrayDeque<E> extends Abstr
803       * followed by all of its elements (each an object reference) in
804       * first-to-last order.
805       */
806 <    private void writeObject(ObjectOutputStream s) throws IOException {
806 >    private void writeObject(java.io.ObjectOutputStream s)
807 >            throws java.io.IOException {
808          s.defaultWriteObject();
809  
810          // Write out size
# Line 820 | Line 819 | public class ArrayDeque<E> extends Abstr
819      /**
820       * Deserialize this deque.
821       */
822 <    private void readObject(ObjectInputStream s)
823 <            throws IOException, ClassNotFoundException {
822 >    private void readObject(java.io.ObjectInputStream s)
823 >            throws java.io.IOException, ClassNotFoundException {
824          s.defaultReadObject();
825  
826          // Read in size and allocate array

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines