Commit 030d72b duke
committed Sep 28, 2021
File tree 2 files changed +2
-1
lines changed
src/java.base/share/classes/java/util/concurrent
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2778,6 +2778,7 @@ static final class InvokeAnyRoot<E> extends ForkJoinTask<E> {
2778
2778
@ SuppressWarnings ("serial" ) // Conditionally serializable
2779
2779
volatile E result ;
2780
2780
final AtomicInteger count ; // in case all throw
2781
+ @ SuppressWarnings ("serial" )
2781
2782
final ForkJoinPool pool ; // to check shutdown while collecting
2782
2783
InvokeAnyRoot (int n , ForkJoinPool p ) {
2783
2784
pool = p ;
Original file line number Diff line number Diff line change @@ -1444,8 +1444,8 @@ static final class AdaptedInterruptibleCallable<T> extends ForkJoinTask<T>
1444
1444
implements RunnableFuture <T > {
1445
1445
@ SuppressWarnings ("serial" ) // Conditionally serializable
1446
1446
final Callable <? extends T > callable ;
1447
- @ SuppressWarnings ("serial" ) // Conditionally serializable
1448
1447
transient volatile Thread runner ;
1448
+ @ SuppressWarnings ("serial" ) // Conditionally serializable
1449
1449
T result ;
1450
1450
AdaptedInterruptibleCallable (Callable <? extends T > callable ) {
1451
1451
if (callable == null ) throw new NullPointerException ();
You can’t perform that action at this time.
0 commit comments