@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