--- jsr166/src/test/extra166y/SortDemo.java 2009/11/01 22:00:35 1.1 +++ jsr166/src/test/extra166y/SortDemo.java 2010/10/16 16:38:37 1.4 @@ -13,7 +13,7 @@ class SortDemo { static final Random rng = new Random(); static final long NPS = (1000L * 1000 * 1000); - public static void main (String[] args) throws Exception { + public static void main(String[] args) throws Exception { int n = 1 << 20; int sreps = 4; int reps = 20; @@ -39,7 +39,7 @@ class SortDemo { System.out.println(fjpool); fjpool.shutdown(); } - + static void seqSort(Long[] a) { long last = System.nanoTime(); java.util.Arrays.sort(a); @@ -53,8 +53,8 @@ class SortDemo { double elapsed = (double)(System.nanoTime() - last) / NPS; System.out.printf("ParallelArray.sort time: %7.3f\n", elapsed); } - - 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].compareTo(a[i+1]) > 0) { @@ -62,7 +62,7 @@ class SortDemo { } } } - + static final class RandomLongGenerator implements Ops.Generator { public Long op() { return new Long(ThreadLocalRandom.current().nextLong());