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

Comparing jsr166/src/test/tck/ForkJoinPoolTest.java (file contents):
Revision 1.77 by jsr166, Wed Nov 21 23:42:12 2018 UTC vs.
Revision 1.78 by jsr166, Mon Dec 16 22:55:54 2019 UTC

# Line 348 | Line 348 | public class ForkJoinPoolTest extends JS
348              p.shutdown();
349              assertTrue(p.isShutdown());
350              try {
351 <                ForkJoinTask<Integer> f = p.submit(new FibTask(8));
351 >                ForkJoinTask<Integer> unused = p.submit(new FibTask(8));
352                  shouldThrow();
353              } catch (RejectedExecutionException success) {}
354          }
# Line 536 | Line 536 | public class ForkJoinPoolTest extends JS
536          ExecutorService e = new ForkJoinPool(1);
537          try (PoolCleaner cleaner = cleaner(e)) {
538              try {
539 <                Future<?> future = e.submit((Runnable) null);
539 >                Future<?> unused = e.submit((Runnable) null);
540                  shouldThrow();
541              } catch (NullPointerException success) {}
542          }
# Line 549 | Line 549 | public class ForkJoinPoolTest extends JS
549          ExecutorService e = new ForkJoinPool(1);
550          try (PoolCleaner cleaner = cleaner(e)) {
551              try {
552 <                Future<String> future = e.submit((Callable) null);
552 >                Future<String> unused = e.submit((Callable) null);
553                  shouldThrow();
554              } catch (NullPointerException success) {}
555          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines