mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8232230: Suppress warnings on non-serializable non-transient instance fields in java.util.concurrent
Reviewed-by: martin
This commit is contained in:
parent
49883054db
commit
98c9f8bdc7
14 changed files with 28 additions and 0 deletions
|
@ -604,8 +604,10 @@ public class ThreadPoolExecutor extends AbstractExecutorService {
|
|||
private static final long serialVersionUID = 6138294804551838833L;
|
||||
|
||||
/** Thread this worker is running in. Null if factory fails. */
|
||||
@SuppressWarnings("serial") // Unlikely to be serializable
|
||||
final Thread thread;
|
||||
/** Initial task to run. Possibly null. */
|
||||
@SuppressWarnings("serial") // Not statically typed as Serializable
|
||||
Runnable firstTask;
|
||||
/** Per-thread task counter */
|
||||
volatile long completedTasks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue