212 |
|
final AtomicInteger onCompletionN = new AtomicInteger(0); |
213 |
|
final AtomicInteger onExceptionalCompletionN = new AtomicInteger(0); |
214 |
|
final AtomicInteger setRawResultN = new AtomicInteger(0); |
215 |
< |
final AtomicReference<Object> rawResult = new AtomicReference<>(null); |
215 |
> |
final AtomicReference<Object> rawResult = new AtomicReference<Object>(null); |
216 |
|
int computeN() { return computeN.get(); } |
217 |
|
int onCompletionN() { return onCompletionN.get(); } |
218 |
|
int onExceptionalCompletionN() { return onExceptionalCompletionN.get(); } |
499 |
|
// Invocation tests use some interdependent task classes |
500 |
|
// to better test propagation etc |
501 |
|
|
502 |
< |
|
503 |
< |
// Version of Fibonacci with different classes for left vs right forks |
502 |
> |
/** |
503 |
> |
* Version of Fibonacci with different classes for left vs right forks |
504 |
> |
*/ |
505 |
|
abstract class CCF extends CheckedCC { |
506 |
|
int number; |
507 |
|
int rnumber; |
1137 |
|
} |
1138 |
|
|
1139 |
|
/** |
1140 |
< |
* invokeAll(collection) throws exception if any task does |
1140 |
> |
* invokeAll(collection) throws exception if any task does |
1141 |
|
*/ |
1142 |
|
public void testAbnormalInvokeAllCollection() { |
1143 |
|
ForkJoinTask a = new CheckedRecursiveAction() { |
1802 |
|
} |
1803 |
|
|
1804 |
|
/** |
1805 |
< |
* invokeAll(collection) throws exception if any task does |
1805 |
> |
* invokeAll(collection) throws exception if any task does |
1806 |
|
*/ |
1807 |
|
public void testAbnormalInvokeAllCollectionSingleton() { |
1808 |
|
ForkJoinTask a = new CheckedRecursiveAction() { |