Skip to content
Permalink
Browse files
8274391: Suppress more warnings on non-serializable non-transient ins…
…tance fields in java.util.concurrent

Reviewed-by: lancea, bpb, alanb, iris
  • Loading branch information
jddarcy committed Sep 28, 2021
1 parent 6a477bd commit 2072bc77b4541c283adaa7eb51a38adcaf711fff
Showing 2 changed files with 2 additions and 1 deletion.
@@ -2778,6 +2778,7 @@ public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks,
@SuppressWarnings("serial") // Conditionally serializable
volatile E result;
final AtomicInteger count; // in case all throw
@SuppressWarnings("serial")
final ForkJoinPool pool; // to check shutdown while collecting
InvokeAnyRoot(int n, ForkJoinPool p) {
pool = p;
@@ -1444,8 +1444,8 @@ public String toString() {
implements RunnableFuture<T> {
@SuppressWarnings("serial") // Conditionally serializable
final Callable<? extends T> callable;
@SuppressWarnings("serial") // Conditionally serializable
transient volatile Thread runner;
@SuppressWarnings("serial") // Conditionally serializable
T result;
AdaptedInterruptibleCallable(Callable<? extends T> callable) {
if (callable == null) throw new NullPointerException();

1 comment on commit 2072bc7

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 2072bc7 Sep 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.