SynchronizeOnNonFinalField
Synchronizing on non-final fields is not safe: if the field is ever updated, different threads may end up locking on different objects.

Category
Severity
WARNING
Maturity

The problem

Possible fixes:

Suppression

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