mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
19 lines
370 B
Java
19 lines
370 B
Java
import net.jcip.annotations.GuardedBy;
|
|
|
|
import java.lang.String;
|
|
|
|
class A {
|
|
|
|
@GuardedBy("itself")
|
|
private String _foo;
|
|
|
|
public String getFoo() {
|
|
synchronized (_foo) {
|
|
return _foo;
|
|
}
|
|
}
|
|
|
|
public void setFoo(String foo) {
|
|
<warning descr="Access to field '_foo' outside of declared guards">_foo</warning> = foo;
|
|
}
|
|
} |