| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | GuardedBy
Indicates that the annotated element should be used only while holding the specified lock. |
| public @interface | LazyInit
Use this annotation on any static or field that will be initialized lazily, where races yield no
semantic difference in the code (as, for example, is the case with |
| public @interface | LockMethod
Deprecated
the correctness of this annotation is not enforced; it will soon be removed.
The method to which this annotation is applied acquires one or more locks.
|
| public @interface | UnlockMethod
Deprecated
the correctness of this annotation is not enforced; it will soon be removed.
The method to which this annotation is applied releases one or more locks.
|