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

Comparing jsr166/src/main/java/util/concurrent/LinkedTransferQueue.java (file contents):
Revision 1.124 by jsr166, Thu Dec 29 03:28:53 2016 UTC vs.
Revision 1.125 by jsr166, Thu Dec 29 03:51:47 2016 UTC

# Line 971 | Line 971 | public class LinkedTransferQueue<E> exte
971          }
972  
973          public final E next() {
974 <            Node p = nextNode;
975 <            if (p == null) throw new NoSuchElementException();
974 >            final Node p;
975 >            if ((p = nextNode) == null) throw new NoSuchElementException();
976              E e = nextItem;
977              advance(p);
978              return e;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines