# | Line 214 | Line 214 | public class ExecutorCompletionServiceTe | |
---|---|---|
214 | new ExecutorCompletionService<String>(e); | |
215 | try { | |
216 | assertNull(ecs.poll()); | |
217 | < | Callable<String> c = new StringTask(); |
218 | < | Future f1 = ecs.submit(c); |
217 | > | Runnable r = new NoOpRunnable(); |
218 | > | Future f1 = ecs.submit(r, null); |
219 | assertTrue("submit must return MyRunnableFuture", | |
220 | f1 instanceof MyRunnableFuture); | |
221 | Future f2 = ecs.take(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |