UnlockMethod
This method does not acquire the locks specified by its @UnlockMethod annotation

Category
JDK
Severity
ERROR
Maturity

Alternate names: GuardedBy

The problem

Methods with the @UnlockMethod annotation are expected to release one or more locks. The caller must hold the locks when the function is entered, and will not hold them when it completes.

Suppression

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