Annotation Interface EnsuresLockHeld
@Documented
@Retention(RUNTIME)
@Target({METHOD,CONSTRUCTOR})
@PostconditionAnnotation(qualifier=LockHeld.class)
@InheritedAnnotation
@Repeatable(List.class)
public @interface EnsuresLockHeld
Indicates that the given expressions are held if the method terminates successfully.
- See Also:
- See the Checker Framework Manual:
- Lock Checker, Example use of @EnsuresLockHeld
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
A wrapper annotation that makes theEnsuresLockHeld
annotation repeatable. -
Required Element Summary
-
Element Details
-
value
String[] valueReturns Java expressions whose values are locks that are held after successful method termination.- Returns:
- Java expressions whose values are locks that are held after successful method termination
- See Also:
-