--- jsr166/src/test/tck/ScheduledExecutorTest.java 2021/01/26 13:33:06 1.99 +++ jsr166/src/test/tck/ScheduledExecutorTest.java 2021/01/27 01:57:24 1.100 @@ -66,7 +66,7 @@ public class ScheduledExecutorTest exten try (PoolCleaner cleaner = cleaner(p)) { final long startTime = System.nanoTime(); final CountDownLatch done = new CountDownLatch(1); - Callable task = new CheckedCallable() { + Callable task = new CheckedCallable<>() { public Boolean realCall() { done.countDown(); assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); @@ -1275,7 +1275,7 @@ public class ScheduledExecutorTest exten public void testTimedInvokeAll6() throws Exception { for (long timeout = timeoutMillis();;) { final CountDownLatch done = new CountDownLatch(1); - final Callable waiter = new CheckedCallable() { + final Callable waiter = new CheckedCallable<>() { public String realCall() { try { done.await(LONG_DELAY_MS, MILLISECONDS); } catch (InterruptedException ok) {}