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

Comparing jsr166/src/test/tck/AbstractExecutorServiceTest.java (file contents):
Revision 1.49 by dl, Tue Jan 26 13:33:05 2021 UTC vs.
Revision 1.50 by jsr166, Wed Jan 27 01:57:24 2021 UTC

# Line 181 | Line 181 | public class AbstractExecutorServiceTest
181      public void testInterruptedSubmit() throws InterruptedException {
182          final CountDownLatch submitted    = new CountDownLatch(1);
183          final CountDownLatch quittingTime = new CountDownLatch(1);
184 <        final Callable<Void> awaiter = new CheckedCallable<Void>() {
184 >        final Callable<Void> awaiter = new CheckedCallable<>() {
185              public Void realCall() throws InterruptedException {
186                  assertTrue(quittingTime.await(2*LONG_DELAY_MS, MILLISECONDS));
187                  return null;
# Line 213 | Line 213 | public class AbstractExecutorServiceTest
213                                     60, TimeUnit.SECONDS,
214                                     new ArrayBlockingQueue<Runnable>(10));
215          try (PoolCleaner cleaner = cleaner(p)) {
216 <            Callable<Object> c = new Callable<Object>() {
216 >            Callable<Object> c = new Callable<>() {
217                  public Object call() { throw new ArithmeticException(); }};
218              try {
219                  p.submit(c).get();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines