--- jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2014/12/31 19:05:42 1.19 +++ jsr166/src/test/tck/ExecutorCompletionServiceTest.java 2015/02/22 04:34:44 1.20 @@ -36,7 +36,7 @@ public class ExecutorCompletionServiceTe */ public void testConstructorNPE() { try { - ExecutorCompletionService ecs = new ExecutorCompletionService(null); + new ExecutorCompletionService(null); shouldThrow(); } catch (NullPointerException success) {} } @@ -47,7 +47,7 @@ public class ExecutorCompletionServiceTe public void testConstructorNPE2() { try { ExecutorService e = Executors.newCachedThreadPool(); - ExecutorCompletionService ecs = new ExecutorCompletionService(e, null); + new ExecutorCompletionService(e, null); shouldThrow(); } catch (NullPointerException success) {} }