mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
accept javax.annotation.concurrent as JSR 305 annotations for concurrency group inspections (IDEA-75733)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import javax.annotation.concurrent.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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user