mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8203681: Miscellaneous changes imported from jsr166 CVS 2018-06
Reviewed-by: martin, psandoz
This commit is contained in:
parent
3afeb2cb48
commit
0a0a8a5791
33 changed files with 164 additions and 123 deletions
|
@ -826,7 +826,7 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
|
|||
*/
|
||||
public static <T extends ForkJoinTask<?>> Collection<T> invokeAll(Collection<T> tasks) {
|
||||
if (!(tasks instanceof RandomAccess) || !(tasks instanceof List<?>)) {
|
||||
invokeAll(tasks.toArray(new ForkJoinTask<?>[tasks.size()]));
|
||||
invokeAll(tasks.toArray(new ForkJoinTask<?>[0]));
|
||||
return tasks;
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue