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.62 by jsr166, Wed Dec 31 09:37:19 2014 UTC vs.
Revision 1.64 by dl, Mon Feb 23 19:54:04 2015 UTC

# Line 746 | Line 746 | public class ArrayDeque<E> extends Abstr
746       * The following code can be used to dump the deque into a newly
747       * allocated array of {@code String}:
748       *
749 <     *  <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
749 >     * <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
750       *
751       * Note that {@code toArray(new Object[0])} is identical in function to
752       * {@code toArray()}.
# Line 901 | Line 901 | public class ArrayDeque<E> extends Abstr
901                  throw new NullPointerException();
902              Object[] a = deq.elements;
903              int m = a.length - 1, f = getFence(), i = index;
904 <            if (i != fence) {
904 >            if (i != f) {
905                  @SuppressWarnings("unchecked") E e = (E)a[i];
906                  index = (i + 1) & m;
907                  if (e == null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines