@Documented public @interface Policy
Modifier and Type | Fields and Description |
---|---|
static String |
VOLATILE_ARRAY
Denotes a volatile array whose elements should not be mutated singularly
|
public static final String VOLATILE_ARRAY
Possible solutions include:
AtomicReferenceArray
insteadJustification: Volatile arrays entail a volatile reference to the whole memory block; not each individual element. Mutations of a point along the block is a violation of object consistency
Copyright © 2016. All rights reserved.