--- jsr166/src/test/loops/NoopLockLoops.java 2009/10/29 23:09:07 1.3 +++ jsr166/src/test/loops/NoopLockLoops.java 2011/03/15 19:47:05 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.*; @@ -57,9 +57,9 @@ public final class NoopLockLoops { barrier.await(); if (print) { long time = timer.getTime(); - long tpi = time / ((long)iters * nthreads); + long tpi = time / ((long) iters * nthreads); System.out.print("\t" + LoopHelpers.rightJustify(tpi) + " ns per lock"); - double secs = (double)(time) / 1000000000.0; + double secs = (double) time / 1000000000.0; System.out.println("\t " + secs + "s run time"); } @@ -75,7 +75,7 @@ public final class NoopLockLoops { int x = sum + 1; int n = iters; while (n-- > 0) { - synchronized(this) { + synchronized (this) { x = LoopHelpers.compute4(x); } sum += x;