--- jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java 2010/09/16 00:52:49 1.35 +++ jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java 2011/03/15 19:47:06 1.39 @@ -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/ * Other contributors include Andrew Wright, Jeffrey Hayes, * Pat Fisher, Mike Judd. */ @@ -58,7 +58,7 @@ public class AbstractQueuedSynchronizerT public boolean isSignalled() { return getState() != 0; } public int tryAcquireShared(int ignore) { - return isSignalled()? 1 : -1; + return isSignalled() ? 1 : -1; } public boolean tryReleaseShared(int ignore) { @@ -475,7 +475,7 @@ public class AbstractQueuedSynchronizerT } /** - * Timed await without a signal times out + * Timed await without a signal times out */ public void testAwait_Timeout() throws InterruptedException { final Mutex sync = new Mutex(); @@ -951,7 +951,7 @@ public class AbstractQueuedSynchronizerT /** * acquireSharedTimed returns after release */ - public void testAsquireSharedTimed() throws InterruptedException { + public void testAcquireSharedTimed() throws InterruptedException { final BooleanLatch l = new BooleanLatch(); Thread t = new Thread(new CheckedRunnable() {