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

Comparing jsr166/src/test/tck/CountedCompleter8Test.java (file contents):
Revision 1.1 by jsr166, Sat Oct 15 18:51:12 2016 UTC vs.
Revision 1.4 by jsr166, Sat Mar 11 17:33:32 2017 UTC

# Line 5 | Line 5
5   * http://creativecommons.org/publicdomain/zero/1.0/
6   */
7  
8 import static java.util.concurrent.TimeUnit.MILLISECONDS;
9 import static java.util.concurrent.TimeUnit.SECONDS;
10
8   import java.util.concurrent.CountedCompleter;
9   import java.util.concurrent.ThreadLocalRandom;
10   import java.util.concurrent.atomic.AtomicInteger;
# Line 123 | Line 120 | public class CountedCompleter8Test exten
120          Integer[] a = new Integer[n];
121          for (int i = 0; i < n; i++) a[i] = i + 1;
122          AtomicInteger ai = new AtomicInteger(0);
123 <        action.accept(a, (x) -> ai.addAndGet(x));
123 >        action.accept(a, ai::addAndGet);
124          assertEquals(n * (n + 1) / 2, ai.get());
125      }
126  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines