921 |
|
AsyncFib f = new AsyncFib(8); |
922 |
|
FailingAsyncFib g = new FailingAsyncFib(9); |
923 |
|
ForkJoinTask[] tasks = { f, g }; |
924 |
< |
Collections.shuffle(Arrays.asList(tasks)); |
924 |
> |
shuffle(tasks); |
925 |
|
try { |
926 |
|
invokeAll(tasks[0], tasks[1]); |
927 |
|
shouldThrow(); |
948 |
|
FailingAsyncFib g = new FailingAsyncFib(9); |
949 |
|
AsyncFib h = new AsyncFib(7); |
950 |
|
ForkJoinTask[] tasks = { f, g, h }; |
951 |
< |
Collections.shuffle(Arrays.asList(tasks)); |
951 |
> |
shuffle(tasks); |
952 |
|
try { |
953 |
|
invokeAll(tasks[0], tasks[1], tasks[2]); |
954 |
|
shouldThrow(); |
975 |
|
AsyncFib g = new AsyncFib(9); |
976 |
|
AsyncFib h = new AsyncFib(7); |
977 |
|
ForkJoinTask[] tasks = { f, g, h }; |
978 |
< |
Collections.shuffle(Arrays.asList(tasks)); |
978 |
> |
shuffle(tasks); |
979 |
|
try { |
980 |
|
invokeAll(Arrays.asList(tasks)); |
981 |
|
shouldThrow(); |