@GuardedBy annotations in which the specified guarding field is unknown.
Example:
private Object state;
@GuardedBy("lock") //unknown guard reference
public void bar() {
state = new Object();
}
Supported @GuardedBy annotations are:
net.jcip.annotations.GuardedByjavax.annotation.concurrent.GuardedByorg.apache.http.annotation.GuardedBycom.android.annotations.concurrency.GuardedByandroidx.annotation.GuardedBycom.google.errorprone.annotations.concurrent.GuardedBy