Top Description Methods
com.google.errorprone.annotations.concurrent

public @Interface GuardedBy

extends Annotation
Annotations
@Target:FIELD, METHOD
@Retention:CLASS
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .RetentionPolicy.CLASS

Indicates that the annotated element should be used only while holding the specified lock.

Method Summary

Modifier and TypeMethod and Description
public String
value()

The lock that should be held, specified in the format given in the documentation for the corresponding Error Prone check.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The lock that should be held, specified in the format given in the documentation for the corresponding Error Prone check.