--- jsr166/src/jsr166e/StampedLock.java 2015/02/26 06:53:34 1.40
+++ jsr166/src/jsr166e/StampedLock.java 2016/06/28 14:52:19 1.42
@@ -28,12 +28,12 @@ import java.util.concurrent.locks.ReadWr
* in method {@link #unlockWrite} to release the lock. Untimed and
* timed versions of {@code tryWriteLock} are also provided. When
* the lock is held in write mode, no read locks may be obtained,
- * and all optimistic read validations will fail.
+ * and all optimistic read validations will fail.
*
*
Reading. Method {@link #readLock} possibly blocks
* waiting for non-exclusive access, returning a stamp that can be
* used in method {@link #unlockRead} to release the lock. Untimed
- * and timed versions of {@code tryReadLock} are also provided.
+ * and timed versions of {@code tryReadLock} are also provided.
*
* Optimistic Reading. Method {@link #tryOptimisticRead}
* returns a non-zero stamp only if the lock is not currently held
@@ -51,7 +51,7 @@ import java.util.concurrent.locks.ReadWr
* invoke method {@code validate()}. For example, such steps are
* typically required when first reading an object or array
* reference, and then accessing one of its fields, elements or
- * methods.
+ * methods.
*
*
*
@@ -1277,7 +1277,7 @@ public class StampedLock implements java
* AbstractQueuedSynchronizer (see its detailed explanation in AQS
* internal documentation).
*
- * @param node if nonnull, the waiter
+ * @param node if non-null, the waiter
* @param group either node or the group node is cowaiting with
* @param interrupted if already interrupted
* @return INTERRUPTED if interrupted or Thread.interrupted, else zero