checker.src.javax.annotation.concurrent.GuardedBy Maven / Gradle / Ivy
package javax.annotation.concurrent;
import java.lang.annotation.*;
import org.checkerframework.checker.lock.qual.LockHeld;
import org.checkerframework.framework.qual.PreconditionAnnotation;
// The JCIP annotation can be used on a field (in which case it corresponds
// to the Lock Checker's @GuardedBy annotation) or on a method (in which case
// it is a declaration annotation corresponding to the Lock Checker's @Holding
// annotation).
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.FIELD })
@PreconditionAnnotation(qualifier = LockHeld.class)
public @interface GuardedBy {
/**
* The Java expressions that need to be held.
*
* @see Syntax
* of Java expressions
*/
String[] value() default {};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy