--- jsr166/src/test/loops/TimeoutMutexLoops.java 2009/10/29 23:09:08 1.3 +++ jsr166/src/test/loops/TimeoutMutexLoops.java 2014/12/31 17:00:58 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/ */ /* * @test @@ -11,9 +11,9 @@ * decade. */ +import java.util.*; import java.util.concurrent.*; import java.util.concurrent.locks.*; -import java.util.*; public final class TimeoutMutexLoops { static final ExecutorService pool = Executors.newCachedThreadPool(); @@ -59,7 +59,7 @@ public final class TimeoutMutexLoops { barrier.await(); if (print) { long time = timer.getTime(); - double secs = (double)(time) / 1000000000.0; + double secs = (double) time / 1000000000.0; System.out.println("\t " + secs + "s run time"); }