--- jsr166/src/test/loops/BoxedLongSort.java 2010/10/16 16:22:56 1.3 +++ jsr166/src/test/loops/BoxedLongSort.java 2011/10/10 16:59:04 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.*; @@ -13,7 +13,7 @@ class BoxedLongSort { static int THRESHOLD; static final boolean warmup = true; - public static void main (String[] args) throws Exception { + public static void main(String[] args) throws Exception { int procs = 0; int n = 1 << 22; int reps = 20; @@ -30,7 +30,7 @@ class BoxedLongSort { System.out.println("Usage: java BoxedLongSort threads n reps"); return; } - ForkJoinPool pool = procs == 0? new ForkJoinPool() : + ForkJoinPool pool = (procs == 0) ? new ForkJoinPool() : new ForkJoinPool(procs); Long[] a = new Long[n]; @@ -206,7 +206,7 @@ class BoxedLongSort { } - static void checkSorted (Long[] a) { + static void checkSorted(Long[] a) { int n = a.length; for (int i = 0; i < n - 1; i++) { if (a[i] > a[i+1]) {