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

Comparing jsr166/src/main/java/util/concurrent/LinkedBlockingDeque.java (file contents):
Revision 1.75 by jsr166, Tue Dec 27 23:49:46 2016 UTC vs.
Revision 1.76 by jsr166, Wed Dec 28 04:53:47 2016 UTC

# Line 997 | Line 997 | public class LinkedBlockingDeque<E>
997       * - (possibly multiple) interior removed nodes (p.item == null)
998       */
999      Node<E> succ(Node<E> p) {
1000 <        return (p == (p = p.next)) ? first : p;
1000 >        if (p == (p = p.next))
1001 >            p = first;
1002 >        return p;
1003      }
1004  
1005      /**
# Line 1054 | Line 1056 | public class LinkedBlockingDeque<E>
1056          abstract Node<E> nextNode(Node<E> n);
1057  
1058          private Node<E> succ(Node<E> p) {
1059 <            return (p == (p = nextNode(p))) ? firstNode() : p;
1059 >            if (p == (p = nextNode(p)))
1060 >                p = firstNode();
1061 >            return p;
1062          }
1063  
1064          AbstractItr() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines