--- jsr166/src/test/loops/LockOncePerThreadLoops.java 2007/02/19 00:46:06 1.2 +++ jsr166/src/test/loops/LockOncePerThreadLoops.java 2009/10/29 23:09:07 1.3 @@ -17,10 +17,10 @@ public final class LockOncePerThreadLoop static int replications = 20; public static void main(String[] args) throws Exception { - if (args.length > 0) + if (args.length > 0) replications = Integer.parseInt(args[0]); - if (args.length > 1) + if (args.length > 1) nlocks = Integer.parseInt(args[1]); print = true; @@ -48,7 +48,7 @@ public final class LockOncePerThreadLoop } final void test() throws Exception { - for (int i = 0; i < nthreads; ++i) + for (int i = 0; i < nthreads; ++i) pool.execute(this); barrier.await(); barrier.await(); @@ -65,7 +65,7 @@ public final class LockOncePerThreadLoop public final void run() { try { - barrier.await(); + barrier.await(); int sum = v; int x = 0; for (int i = 0; i < locks.length; ++i) { @@ -86,8 +86,8 @@ public final class LockOncePerThreadLoop barrier.await(); result += sum; } - catch (Exception ie) { - return; + catch (Exception ie) { + return; } } }