|
|
|
@ -13,6 +13,8 @@ import java.lang.annotation.ElementType;
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
import com.google.common.annotations.VisibleForTesting;
|
|
|
|
|
|
|
|
|
|
import java.io.Closeable;
|
|
|
|
|
|
|
|
|
|
public class GuardedByExample {
|
|
|
|
@ -251,6 +253,16 @@ public class GuardedByExample {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@VisibleForTesting
|
|
|
|
|
public void visibleForTestingOk1() {
|
|
|
|
|
f.toString(); // should push proof obl to caller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@VisibleForTesting
|
|
|
|
|
void visibleForTestingOk2() {
|
|
|
|
|
f.toString(); // should push proof obl to caller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: report on these cases
|
|
|
|
|
/*
|
|
|
|
|
public void unguardedCallSiteBad1() {
|
|
|
|
|