--- jsr166/src/test/loops/ExecutorCompletionServiceLoops.java 2011/03/15 19:47:05 1.4 +++ jsr166/src/test/loops/ExecutorCompletionServiceLoops.java 2015/10/28 06:30:10 1.8 @@ -7,7 +7,7 @@ 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); - - } }