Package com.google.errorprone.annotations.concurrent
package com.google.errorprone.annotations.concurrent
-
ClassDescriptionIndicates that the annotated element should be used only while holding the specified lock.Use this annotation on any static or field that will be initialized lazily, where races yield no semantic difference in the code (as, for example, is the case with
String.hashCode()
).Deprecated.the correctness of this annotation is not enforced; it will soon be removed.Deprecated.the correctness of this annotation is not enforced; it will soon be removed.