accept javax.annotation.concurrent as JSR 305 annotations for concurrency group inspections (IDEA-75733)

This commit is contained in:
Anna Kozlova
2016-01-04 13:07:14 +01:00
parent 90d3a02335
commit 2021b5fa00
5 changed files with 120 additions and 21 deletions
@@ -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;
}
}