@GuardedBy({}) is the default type qualifier.
The argument is a string or set of strings that indicates the expression(s) that must be held,
using the syntax of
Java expressions described in the manual. The expressions evaluate to an intrinsic (built-in,
synchronization) monitor or an explicit java.util.concurrent.locks.Lock. The expression
"<self>" is also permitted; the type @GuardedBy("<self>") Object o indicates that
the value referenced by o is guarded by the intrinsic (monitor) lock of the value
referenced by o.
Two @GuardedBy annotations with different argument expressions are unrelated by
subtyping.
Holding
| Modifier and Type | Method and Description |
|---|---|
| public String[] |
| value | back to summary |
|---|---|
| public String[] value() The Java value expressions that need to be held.
| |