68 |
|
} |
69 |
|
} |
70 |
|
|
71 |
< |
void checkNotDone(ForkJoinTask a) { |
71 |
> |
void checkNotDone(ForkJoinTask<?> a) { |
72 |
|
assertFalse(a.isDone()); |
73 |
|
assertFalse(a.isCompletedNormally()); |
74 |
|
assertFalse(a.isCompletedAbnormally()); |
123 |
|
assertSame(expectedValue, v2); |
124 |
|
} |
125 |
|
|
126 |
< |
void checkCancelled(ForkJoinTask a) { |
126 |
> |
void checkCancelled(ForkJoinTask<?> a) { |
127 |
|
assertTrue(a.isDone()); |
128 |
|
assertTrue(a.isCancelled()); |
129 |
|
assertFalse(a.isCompletedNormally()); |
160 |
|
} catch (Throwable fail) { threadUnexpectedException(fail); } |
161 |
|
} |
162 |
|
|
163 |
< |
void checkCompletedAbnormally(ForkJoinTask a, Throwable t) { |
163 |
> |
void checkCompletedAbnormally(ForkJoinTask<?> a, Throwable t) { |
164 |
|
assertTrue(a.isDone()); |
165 |
|
assertFalse(a.isCancelled()); |
166 |
|
assertFalse(a.isCompletedNormally()); |
858 |
|
AsyncFib f = new AsyncFib(8); |
859 |
|
AsyncFib g = new AsyncFib(9); |
860 |
|
AsyncFib h = new AsyncFib(7); |
861 |
< |
HashSet set = new HashSet(); |
861 |
> |
HashSet<ForkJoinTask<?>> set = new HashSet<ForkJoinTask<?>>(); |
862 |
|
set.add(f); |
863 |
|
set.add(g); |
864 |
|
set.add(h); |
898 |
|
protected void realCompute() { |
899 |
|
AsyncFib f = new AsyncFib(8); |
900 |
|
FailingAsyncFib g = new FailingAsyncFib(9); |
901 |
< |
ForkJoinTask[] tasks = { f, g }; |
901 |
> |
ForkJoinTask<?>[] tasks = { f, g }; |
902 |
|
shuffle(tasks); |
903 |
|
try { |
904 |
|
invokeAll(tasks); |
936 |
|
AsyncFib f = new AsyncFib(8); |
937 |
|
FailingAsyncFib g = new FailingAsyncFib(9); |
938 |
|
AsyncFib h = new AsyncFib(7); |
939 |
< |
ForkJoinTask[] tasks = { f, g, h }; |
939 |
> |
ForkJoinTask<?>[] tasks = { f, g, h }; |
940 |
|
shuffle(tasks); |
941 |
|
try { |
942 |
|
invokeAll(tasks); |
957 |
|
FailingAsyncFib f = new FailingAsyncFib(8); |
958 |
|
AsyncFib g = new AsyncFib(9); |
959 |
|
AsyncFib h = new AsyncFib(7); |
960 |
< |
ForkJoinTask[] tasks = { f, g, h }; |
960 |
> |
ForkJoinTask<?>[] tasks = { f, g, h }; |
961 |
|
shuffle(tasks); |
962 |
|
try { |
963 |
|
invokeAll(Arrays.asList(tasks)); |
1527 |
|
AsyncFib f = new AsyncFib(8); |
1528 |
|
AsyncFib g = new AsyncFib(9); |
1529 |
|
AsyncFib h = new AsyncFib(7); |
1530 |
< |
HashSet set = new HashSet(); |
1530 |
> |
HashSet<ForkJoinTask<?>> set = new HashSet<ForkJoinTask<?>>(); |
1531 |
|
set.add(f); |
1532 |
|
set.add(g); |
1533 |
|
set.add(h); |
1567 |
|
protected void realCompute() { |
1568 |
|
AsyncFib f = new AsyncFib(8); |
1569 |
|
FailingAsyncFib g = new FailingAsyncFib(9); |
1570 |
< |
ForkJoinTask[] tasks = { f, g }; |
1570 |
> |
ForkJoinTask<?>[] tasks = { f, g }; |
1571 |
|
shuffle(tasks); |
1572 |
|
try { |
1573 |
|
invokeAll(tasks); |
1605 |
|
AsyncFib f = new AsyncFib(8); |
1606 |
|
FailingAsyncFib g = new FailingAsyncFib(9); |
1607 |
|
AsyncFib h = new AsyncFib(7); |
1608 |
< |
ForkJoinTask[] tasks = { f, g, h }; |
1608 |
> |
ForkJoinTask<?>[] tasks = { f, g, h }; |
1609 |
|
shuffle(tasks); |
1610 |
|
try { |
1611 |
|
invokeAll(tasks); |
1626 |
|
FailingAsyncFib f = new FailingAsyncFib(8); |
1627 |
|
AsyncFib g = new AsyncFib(9); |
1628 |
|
AsyncFib h = new AsyncFib(7); |
1629 |
< |
ForkJoinTask[] tasks = { f, g, h }; |
1629 |
> |
ForkJoinTask<?>[] tasks = { f, g, h }; |
1630 |
|
shuffle(tasks); |
1631 |
|
try { |
1632 |
|
invokeAll(Arrays.asList(tasks)); |