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.92 by jsr166, Wed Oct 26 21:19:22 2016 UTC vs.
Revision 1.93 by jsr166, Thu Oct 27 02:12:21 2016 UTC

# Line 476 | Line 476 | public class ArrayDeque<E> extends Abstr
476              final int capacity = elements.length;
477              int i, to, end, todo;
478              todo = (to = ((end = (i = tail()) - size) >= -1) ? end : -1) - end;
479 <            for (;; i = capacity - 1, to = capacity - 1 - todo, todo = 0) {
479 >            for (;; i = capacity - 1, to = i - todo, todo = 0) {
480                  for (; i > to; i--)
481                      if (o.equals(elements[i])) {
482                          delete(i);
# Line 893 | Line 893 | public class ArrayDeque<E> extends Abstr
893          final int capacity = elements.length;
894          int end, to, todo;
895          todo = (to = ((end = i - remaining) >= -1) ? end : -1) - end;
896 <        for (;; i = capacity - 1, to = capacity - 1 - todo, todo = 0) {
896 >        for (;; i = capacity - 1, to = i - todo, todo = 0) {
897              for (; i > to; i--)
898                  action.accept(nonNullElementAt(elements, i));
899              if (todo == 0) break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines