50 |
|
|
51 |
|
/** Doubly-linked list node class */ |
52 |
|
static final class Node<E> { |
53 |
< |
E item; |
53 |
> |
E item; |
54 |
|
Node<E> prev; |
55 |
|
Node<E> next; |
56 |
|
Node(E x, Node<E> p, Node<E> n) { |
684 |
|
final ReentrantLock lock = LinkedBlockingDeque.this.lock; |
685 |
|
lock.lock(); |
686 |
|
try { |
687 |
< |
next = (next == null)? first : next.next; |
688 |
< |
nextItem = (next == null)? null : next.item; |
687 |
> |
next = (next == null) ? first : next.next; |
688 |
> |
nextItem = (next == null) ? null : next.item; |
689 |
|
} finally { |
690 |
|
lock.unlock(); |
691 |
|
} |