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

Comparing jsr166/src/test/tck/ScheduledExecutorTest.java (file contents):
Revision 1.99 by dl, Tue Jan 26 13:33:06 2021 UTC vs.
Revision 1.100 by jsr166, Wed Jan 27 01:57:24 2021 UTC

# Line 66 | Line 66 | public class ScheduledExecutorTest exten
66          try (PoolCleaner cleaner = cleaner(p)) {
67              final long startTime = System.nanoTime();
68              final CountDownLatch done = new CountDownLatch(1);
69 <            Callable<Boolean> task = new CheckedCallable<Boolean>() {
69 >            Callable<Boolean> task = new CheckedCallable<>() {
70                  public Boolean realCall() {
71                      done.countDown();
72                      assertTrue(millisElapsedSince(startTime) >= timeoutMillis());
# Line 1275 | Line 1275 | public class ScheduledExecutorTest exten
1275      public void testTimedInvokeAll6() throws Exception {
1276          for (long timeout = timeoutMillis();;) {
1277              final CountDownLatch done = new CountDownLatch(1);
1278 <            final Callable<String> waiter = new CheckedCallable<String>() {
1278 >            final Callable<String> waiter = new CheckedCallable<>() {
1279                  public String realCall() {
1280                      try { done.await(LONG_DELAY_MS, MILLISECONDS); }
1281                      catch (InterruptedException ok) {}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines