GuardedByValidator
Invalid @GuardedBy expression

Category
JDK
Severity
ERROR
Maturity

The problem

@GuardedBy(lock) documents that a field or method should be accessed only with a specific lock held. The lock argument identifies the lock that should be held when accessing the annotated field or method. The possible values for lock are:

Suppression

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