src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceArray.java
equal
deleted
inserted
replaced
53 */ |
53 */ |
54 public class AtomicReferenceArray<E> implements java.io.Serializable { |
54 public class AtomicReferenceArray<E> implements java.io.Serializable { |
55 private static final long serialVersionUID = -6209656149925076980L; |
55 private static final long serialVersionUID = -6209656149925076980L; |
56 private static final VarHandle AA |
56 private static final VarHandle AA |
57 = MethodHandles.arrayElementVarHandle(Object[].class); |
57 = MethodHandles.arrayElementVarHandle(Object[].class); |
|
58 @SuppressWarnings("serial") // Conditionally serializable |
58 private final Object[] array; // must have exact type Object[] |
59 private final Object[] array; // must have exact type Object[] |
59 |
60 |
60 /** |
61 /** |
61 * Creates a new AtomicReferenceArray of the given length, with all |
62 * Creates a new AtomicReferenceArray of the given length, with all |
62 * elements initially null. |
63 * elements initially null. |