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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentLinkedDeque.java (file contents):
Revision 1.82 by jsr166, Sat Dec 24 11:14:37 2016 UTC vs.
Revision 1.83 by jsr166, Sat Dec 24 19:32:07 2016 UTC

# Line 1417 | Line 1417 | public class ConcurrentLinkedDeque<E>
1417          }
1418  
1419          public void forEachRemaining(Consumer<? super E> action) {
1420 +            Objects.requireNonNull(action);
1421              Node<E> p;
1421            if (action == null) throw new NullPointerException();
1422              if (!exhausted &&
1423                  ((p = current) != null || (p = first()) != null)) {
1424                  current = null;
# Line 1434 | Line 1434 | public class ConcurrentLinkedDeque<E>
1434          }
1435  
1436          public boolean tryAdvance(Consumer<? super E> action) {
1437 +            Objects.requireNonNull(action);
1438              Node<E> p;
1438            if (action == null) throw new NullPointerException();
1439              if (!exhausted &&
1440                  ((p = current) != null || (p = first()) != null)) {
1441                  E e;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines