--- jsr166/src/test/loops/ScalarLongSort.java 2010/09/20 20:42:37 1.5 +++ jsr166/src/test/loops/ScalarLongSort.java 2010/11/29 20:58:07 1.7 @@ -30,7 +30,7 @@ class ScalarLongSort { System.out.println("Usage: java ScalarLongSort threads n reps"); return; } - ForkJoinPool pool = procs == 0? new ForkJoinPool() : + ForkJoinPool pool = (procs == 0) ? new ForkJoinPool() : new ForkJoinPool(procs); long[] a = new long[n]; @@ -88,7 +88,7 @@ class ScalarLongSort { this.a = a; this.w = w; this.origin = origin; this.n = n; } - public void compute() { + public void compute() { int l = origin; if (n <= THRESHOLD) Arrays.sort(a, l, l+n); @@ -206,7 +206,7 @@ class ScalarLongSort { } - 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]) {