--- jsr166/src/jsr166x/LinkedBlockingDeque.java 2009/11/16 04:16:42 1.3 +++ jsr166/src/jsr166x/LinkedBlockingDeque.java 2011/10/25 18:46:37 1.8 @@ -1,7 +1,7 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ */ package jsr166x; @@ -50,7 +50,7 @@ public class LinkedBlockingDeque /** Doubly-linked list node class */ static final class Node { - E item; + E item; Node prev; Node next; Node(E x, Node p, Node n) { @@ -524,7 +524,7 @@ public class LinkedBlockingDeque * Variant of removeFirstOccurrence needed by iterator.remove. * Searches for the node, not its contents. */ - boolean removeNode(Node e) { + boolean removeNode(Node e) { lock.lock(); try { for (Node p = first; p != null; p = p.next) { @@ -684,8 +684,8 @@ public class LinkedBlockingDeque final ReentrantLock lock = LinkedBlockingDeque.this.lock; lock.lock(); try { - next = (next == null)? first : next.next; - nextItem = (next == null)? null : next.item; + next = (next == null) ? first : next.next; + nextItem = (next == null) ? null : next.item; } finally { lock.unlock(); } @@ -717,7 +717,7 @@ public class LinkedBlockingDeque } /** - * Save the state to a stream (that is, serialize it). + * Saves the state to a stream (that is, serializes it). * * @serialData The capacity (int), followed by elements (each an * Object) in the proper order, followed by a null @@ -740,8 +740,8 @@ public class LinkedBlockingDeque } /** - * Reconstitute this deque instance from a stream (that is, - * deserialize it). + * Reconstitutes this deque instance from a stream (that is, + * deserializes it). * @param s the stream */ private void readObject(java.io.ObjectInputStream s)