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

Comparing jsr166/src/test/tck/ExecutorCompletionService9Test.java (file contents):
Revision 1.3 by jsr166, Mon May 23 18:19:48 2016 UTC vs.
Revision 1.4 by jsr166, Mon May 23 22:58:06 2016 UTC

# Line 34 | Line 34 | public class ExecutorCompletionService9T
34          throws InterruptedException, ExecutionException {
35          CompletionService<Integer> cs
36              = new ExecutorCompletionService<>(e);
37 <        solvers.forEach((solver) -> cs.submit(solver));
37 >        solvers.forEach(cs::submit);
38          for (int i = solvers.size(); i > 0; i--) {
39              Integer r = cs.take().get();
40              if (r != null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines