@GuardedBy 어노테이션을 보고합니다.
예:
private Object state;
@GuardedBy("lock") //알 수 없는 가드 참조
public void bar() {
state = new Object();
}
지원되는 @GuardedBy 어노테이션:
net.jcip.annotations.GuardedByjavax.annotation.concurrent.GuardedByorg.apache.http.annotation.GuardedBycom.android.annotations.concurrency.GuardedByandroidx.annotation.GuardedBycom.google.errorprone.annotations.concurrent.GuardedBy