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

Comparing jsr166/src/test/tck/RecursiveActionTest.java (file contents):
Revision 1.50 by jsr166, Mon May 29 19:15:02 2017 UTC vs.
Revision 1.54 by jsr166, Mon May 28 21:49:32 2018 UTC

# Line 325 | Line 325 | public class RecursiveActionTest extends
325       * succeeds in the presence of interrupts
326       */
327      public void testJoinIgnoresInterruptsOutsideForkJoinPool() {
328 <        final SynchronousQueue<FibAction[]> sq =
329 <            new SynchronousQueue<FibAction[]>();
328 >        final SynchronousQueue<FibAction[]> sq = new SynchronousQueue<>();
329          RecursiveAction a = new CheckedRecursiveAction() {
330              protected void realCompute() throws InterruptedException {
331                  FibAction[] fibActions = new FibAction[6];
# Line 338 | Line 337 | public class RecursiveActionTest extends
337                  fibActions[4].cancel(true);
338                  fibActions[5].completeExceptionally(new FJException());
339  
340 <                for (int i = 0; i < fibActions.length; i++)
341 <                    fibActions[i].fork();
340 >                for (FibAction fibAction : fibActions)
341 >                    fibAction.fork();
342  
343                  sq.put(fibActions);
344  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines