--- jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2009/11/30 08:31:09 1.39 +++ jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2010/08/25 00:07:03 1.41 @@ -15,7 +15,7 @@ import java.util.*; public class ReentrantReadWriteLockTest extends JSR166TestCase { public static void main(String[] args) { - junit.textui.TestRunner.run (suite()); + junit.textui.TestRunner.run(suite()); } public static Test suite() { return new TestSuite(ReentrantReadWriteLockTest.class); @@ -899,7 +899,7 @@ public class ReentrantReadWriteLockTest Thread t = new Thread(new CheckedInterruptedRunnable() { public void realRun() throws InterruptedException { lock.writeLock().lock(); - c.awaitNanos(LONG_DELAY_MS * 1000L * 1000L); + c.awaitNanos(MILLISECONDS.toNanos(LONG_DELAY_MS)); lock.writeLock().unlock(); }});