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.113 by jsr166, Sat Dec 24 20:51:00 2016 UTC vs.
Revision 1.114 by jsr166, Mon Dec 26 17:29:35 2016 UTC

# Line 1006 | Line 1006 | public class LinkedTransferQueue<E> exte
1006                      if (p == (p = p.next))
1007                          p = head;
1008                  } while (p != null && i < n);
1009 <                exhausted = ((current = p) == null);
1009 >                if ((current = p) == null)
1010 >                    exhausted = true;
1011                  if (i > 0) {
1012                      batch = i;
1013                      return Spliterators.spliterator
# Line 1060 | Line 1061 | public class LinkedTransferQueue<E> exte
1061                      if (p == (p = p.next))
1062                          p = head;
1063                  } while (item == null && p != null);
1064 <                exhausted = ((current = p) == null);
1064 >                if ((current = p) == null)
1065 >                    exhausted = true;
1066                  if (item != null) {
1067                      action.accept((E)item);
1068                      return true;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines