--- jsr166/src/test/loops/LU.java 2010/09/20 20:42:37 1.2 +++ jsr166/src/test/loops/LU.java 2014/12/31 16:44:01 1.7 @@ -1,19 +1,17 @@ /* * 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 jsr166y.*; import java.util.concurrent.*; -import java.util.concurrent.TimeUnit; /** * LU matrix decomposition demo * Based on those in Cilk and Hood - **/ - + */ public final class LU { /** for time conversion */ @@ -46,7 +44,7 @@ public final class LU { System.out.println(usage); return; } - ForkJoinPool pool = procs == 0? new ForkJoinPool() : + ForkJoinPool pool = (procs == 0) ? new ForkJoinPool() : new ForkJoinPool(procs); System.out.println("procs: " + pool.getParallelism() + " n: " + n + " runs: " + runs); @@ -380,8 +378,4 @@ public final class LU { thr.invoke(); } } - - - } -