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.82 by jsr166, Sat Oct 22 19:42:42 2016 UTC vs.
Revision 1.83 by jsr166, Sun Oct 23 00:28:41 2016 UTC

# Line 270 | Line 270 | public class ArrayDeque<E> extends Abstr
270          else
271              elements[head = dec(head, capacity)] = e;
272          size = s + 1;
273 +        // checkInvariants();
274      }
275  
276      private void addFirstSlowPath(E e) {
277          grow(1);
278          final Object[] elements = this.elements;
279          elements[head = dec(head, elements.length)] = e;
279        // checkInvariants();
280      }
281  
282      /**
# Line 297 | Line 297 | public class ArrayDeque<E> extends Abstr
297          else
298              elements[add(head, s, capacity)] = e;
299          size = s + 1;
300 +        // checkInvariants();
301      }
302  
303      private void addLastSlowPath(E e) {
304          grow(1);
305          final Object[] elements = this.elements;
306          elements[add(head, size, elements.length)] = e;
306        // checkInvariants();
307      }
308  
309      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines