--- jsr166/src/test/loops/CheckedLockLoops.java 2005/05/02 19:19:38 1.1 +++ jsr166/src/test/loops/CheckedLockLoops.java 2009/08/01 22:12:59 1.3 @@ -1,4 +1,9 @@ /* + * 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 + */ +/* * @test * @summary basic safety and liveness of ReentrantLocks, and other locks based on them */ @@ -174,7 +179,7 @@ public final class CheckedLockLoops { private volatile int readBarrier; final int loop(int n) { int sum = 0; - int x = 0;; + int x = 0; while (n-- > 0) { int r1 = readBarrier; x = setValue(LoopHelpers.compute1(getValue())); @@ -190,7 +195,7 @@ public final class CheckedLockLoops { private static class BuiltinLockLoop extends LockLoop { final int loop(int n) { int sum = 0; - int x = 0;; + int x = 0; while (n-- > 0) { synchronized(this) { x = setValue(LoopHelpers.compute1(getValue()));