--- jsr166/src/test/loops/ExecutorCompletionServiceLoops.java 2009/10/29 23:09:07 1.3 +++ jsr166/src/test/loops/ExecutorCompletionServiceLoops.java 2015/01/15 18:34:19 1.6 @@ -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.*; @@ -32,7 +32,7 @@ public class ExecutorCompletionServiceLo Thread.sleep(100); } pool.shutdown(); - } + } static class Task implements Callable { public Integer call() { @@ -75,7 +75,6 @@ public class ExecutorCompletionServiceLo if (r == 0) // avoid overoptimization System.out.println("useless result: " + r); - } }