--- jsr166/src/jsr166e/extra/SequenceLock.java 2012/10/12 14:09:35 1.1 +++ jsr166/src/jsr166e/extra/SequenceLock.java 2013/01/02 04:35:20 1.4 @@ -40,7 +40,7 @@ import java.io.IOException; * threads invoke short read-only methods much more frequently than * fully locked methods. * - *

Methods {@code awaitAvailability} and {@code getSequence} can + *

Methods {@code awaitAvailability} and {@code getSequence} can * be used together to define (partially) optimistic read-only methods * that are usually more efficient than ReadWriteLocks when they * apply. These methods should in general be structured as loops that @@ -109,7 +109,7 @@ public class SequenceLock implements Loc private static final long serialVersionUID = 7373984872572414699L; static final class Sync extends AbstractQueuedLongSynchronizer { - static final long serialVersionUID = 2540673546047039555L; + private static final long serialVersionUID = 2540673546047039555L; /** * The number of times to spin in lock() and awaitAvailability(). @@ -483,7 +483,6 @@ public class SequenceLock implements Loc * the lock could be acquired * @throws InterruptedException if the current thread is interrupted * @throws NullPointerException if the time unit is null - * */ public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException {