mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -55,6 +55,7 @@ public class AtomicReferenceArray<E> implements java.io.Serializable {
|
|||
private static final long serialVersionUID = -6209656149925076980L;
|
||||
private static final VarHandle AA
|
||||
= MethodHandles.arrayElementVarHandle(Object[].class);
|
||||
@SuppressWarnings("serial") // Conditionally serializable
|
||||
private final Object[] array; // must have exact type Object[]
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue