--- jsr166/src/test/loops/ExecutorCompletionServiceLoops.java 2009/10/29 23:09:07 1.3 +++ jsr166/src/test/loops/ExecutorCompletionServiceLoops.java 2015/10/28 06:30:10 1.8 @@ -1,13 +1,13 @@ /* * 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.*; public class ExecutorCompletionServiceLoops { - static final int POOLSIZE = 100; + static final int POOLSIZE = 100; static final ExecutorService pool = Executors.newFixedThreadPool(POOLSIZE); static final ExecutorCompletionService ecs = @@ -32,7 +32,7 @@ public class ExecutorCompletionServiceLo Thread.sleep(100); } pool.shutdown(); - } + } static class Task implements Callable { public Integer call() { @@ -74,8 +74,6 @@ public class ExecutorCompletionServiceLo if (r == 0) // avoid overoptimization System.out.println("useless result: " + r); - - } }