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

public @Interface LockMethod

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

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. The caller will hold the locks when the function finishes execution.

This annotation does not apply to built-in (synchronization) locks, which cannot be acquired without being released in the same method.

The arguments determine which locks the annotated method acquires:

Method Summary

Modifier and TypeMethod and Description
public String[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String[] value()