ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ExecutorCompletionServiceTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ExecutorCompletionServiceTest.java (file contents):
Revision 1.22 by jsr166, Sun Oct 4 18:28:51 2015 UTC vs.
Revision 1.23 by jsr166, Tue May 3 23:06:12 2016 UTC

# Line 10 | Line 10 | import static java.util.concurrent.TimeU
10  
11   import java.util.concurrent.ArrayBlockingQueue;
12   import java.util.concurrent.Callable;
13 + import java.util.concurrent.CompletionService;
14   import java.util.concurrent.ExecutorCompletionService;
15   import java.util.concurrent.Executors;
16   import java.util.concurrent.ExecutorService;
# Line 166 | Line 167 | public class ExecutorCompletionServiceTe
167                  protected <T> RunnableFuture<T> newTaskFor(Callable<T> c) {
168                      return new MyCallableFuture<T>(c);
169                  }};
170 <        ExecutorCompletionService<String> ecs =
171 <            new ExecutorCompletionService<String>(e);
170 >        CompletionService<String> ecs =
171 >            new ExecutorCompletionService<>(e);
172          try (PoolCleaner cleaner = cleaner(e)) {
173              assertNull(ecs.poll());
174              Callable<String> c = new StringTask();
# Line 197 | Line 198 | public class ExecutorCompletionServiceTe
198                  protected <T> RunnableFuture<T> newTaskFor(Runnable t, T r) {
199                      return new MyRunnableFuture<T>(t, r);
200                  }};
201 <        final ExecutorCompletionService<String> ecs =
202 <            new ExecutorCompletionService<String>(e);
201 >        final CompletionService<String> ecs =
202 >            new ExecutorCompletionService<>(e);
203          try (PoolCleaner cleaner = cleaner(e)) {
204              assertNull(ecs.poll());
205              Runnable r = new NoOpRunnable();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines