--- jsr166/src/test/tck/AbstractExecutorServiceTest.java 2021/01/26 13:33:05 1.49 +++ jsr166/src/test/tck/AbstractExecutorServiceTest.java 2021/01/27 01:57:24 1.50 @@ -181,7 +181,7 @@ public class AbstractExecutorServiceTest public void testInterruptedSubmit() throws InterruptedException { final CountDownLatch submitted = new CountDownLatch(1); final CountDownLatch quittingTime = new CountDownLatch(1); - final Callable awaiter = new CheckedCallable() { + final Callable awaiter = new CheckedCallable<>() { public Void realCall() throws InterruptedException { assertTrue(quittingTime.await(2*LONG_DELAY_MS, MILLISECONDS)); return null; @@ -213,7 +213,7 @@ public class AbstractExecutorServiceTest 60, TimeUnit.SECONDS, new ArrayBlockingQueue(10)); try (PoolCleaner cleaner = cleaner(p)) { - Callable c = new Callable() { + Callable c = new Callable<>() { public Object call() { throw new ArithmeticException(); }}; try { p.submit(c).get();