--- jsr166/src/test/loops/IntegrateGamma.java 2010/10/16 16:22:57 1.3 +++ jsr166/src/test/loops/IntegrateGamma.java 2012/10/21 06:40:21 1.8 @@ -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.*; @@ -12,9 +12,7 @@ import java.util.concurrent.*; * Inspired by a * Filaments * demo program. - * */ - public class IntegrateGamma { /** for time conversion */ static final long NPS = (1000L * 1000 * 1000); @@ -38,7 +36,7 @@ public class IntegrateGamma { return; } - ForkJoinPool g = procs == 0? new ForkJoinPool() : + ForkJoinPool g = (procs == 0) ? new ForkJoinPool() : new ForkJoinPool(procs); System.out.println("Integrating from " + start + " to " + end + " exponent: " + exp + " parallelism " + g.getParallelism()); @@ -171,5 +169,3 @@ public class IntegrateGamma { } } - -