@Documented @Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) @ConditionalPostconditionAnnotation(qualifier=LockHeld.class) @InheritedAnnotation @Repeatable(value=EnsuresLockHeldIf.List.class) public @interface EnsuresLockHeldIf
EnsuresLockHeld
Modifier and Type | Required Element and Description |
---|---|
String[] |
expression
Returns Java expressions whose values are locks that are held after the method returns the
given result.
|
boolean |
result
Returns the return value of the method under which the postconditions hold.
|
public abstract String[] expression