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.54 by jsr166, Mon May 28 21:49:32 2018 UTC vs.
Revision 1.57 by jsr166, Wed Jan 27 01:57:24 2021 UTC

# Line 96 | Line 96 | public class RecursiveActionTest extends
96          assertNull(a.join());
97          assertFalse(a.cancel(false));
98          assertFalse(a.cancel(true));
99 +
100 +        Object v1 = null, v2 = null;
101          try {
102 <            assertNull(a.get());
103 <            assertNull(a.get(randomTimeout(), randomTimeUnit()));
102 >            v1 = a.get();
103 >            v2 = a.get(randomTimeout(), randomTimeUnit());
104          } catch (Throwable fail) { threadUnexpectedException(fail); }
105 +        assertNull(v1);
106 +        assertNull(v2);
107      }
108  
109      void checkCancelled(RecursiveAction a) {
# Line 916 | Line 920 | public class RecursiveActionTest extends
920                  FibAction f = new FibAction(8);
921                  FibAction g = new FibAction(9);
922                  FibAction h = new FibAction(7);
923 <                HashSet set = new HashSet();
923 >                HashSet<ForkJoinTask<?>> set = new HashSet<>();
924                  set.add(f);
925                  set.add(g);
926                  set.add(h);
# Line 1014 | Line 1018 | public class RecursiveActionTest extends
1018                  FailingFibAction f = new FailingFibAction(8);
1019                  FibAction g = new FibAction(9);
1020                  FibAction h = new FibAction(7);
1021 <                HashSet set = new HashSet();
1021 >                HashSet<ForkJoinTask<?>> set = new HashSet<>();
1022                  set.add(f);
1023                  set.add(g);
1024                  set.add(h);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines