PrimitiveAtomicReference
Using compareAndSet with boxed primitives is dangerous, as reference rather than value equality is used. Consider using AtomicInteger, AtomicLong, AtomicBoolean from JDK or AtomicDouble from Guava instead.

Severity
WARNING

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("PrimitiveAtomicReference") to the enclosing element.