--- jsr166/src/test/loops/ReadHoldingWriteLock.java 2010/09/01 07:20:36 1.4 +++ jsr166/src/test/loops/ReadHoldingWriteLock.java 2011/10/25 20:29:12 1.6 @@ -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/ */ import java.util.concurrent.locks.*; @@ -68,7 +68,7 @@ class ReadHoldingWriteLock { * Read lock succeeds if write locked by current thread even if * other threads are waiting */ - public void testReadHoldingWriteLock2() throws Exception{ + public void testReadHoldingWriteLock2() throws Exception { final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); lock.writeLock().lock(); Thread t1 = new Thread(new Runnable() { @@ -101,7 +101,7 @@ class ReadHoldingWriteLock { /** * Fair Read trylock succeeds if write locked by current thread */ - public void testReadHoldingWriteLockFair() throws Exception{ + public void testReadHoldingWriteLockFair() throws Exception { final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(true); lock.writeLock().lock(); assertTrue(lock.readLock().tryLock());