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

Severity
WARNING
Tags
FragileCode

The problem

Possible fixes:

Suppression

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