mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
accessibility check for annotation parameters: treat parameters as they are outside the class (IDEA-165904)
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
import a.A;
|
||||
|
||||
@SuppressWarnings(A.<error descr="'A_FOO' has protected access in 'a.A'">A_FOO</error>)
|
||||
class B extends A {}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
@SomeAnnotation(<error descr="'Foo.Bar' has private access in 'Foo'">Foo.Bar</error>.class)
|
||||
@SomeAnnotation(Foo.<error descr="'Foo.Bar' has private access in 'Foo'">Bar</error>.class)
|
||||
public class Foo{
|
||||
private static class Bar {
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
@SuppressWarnings(<error descr="'ThisClass.FOO' has private access in 'ThisClass'">ThisClass.FOO</error>)
|
||||
@SuppressWarnings(ThisClass.<error descr="'FOO' has private access in 'ThisClass'">FOO</error>)
|
||||
public class ThisClass {
|
||||
private static final String FOO = "foo";
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
@FooAnnotation(<error descr="'Foo.BAR' has private access in 'Foo'">Foo.BAR</error>)
|
||||
@FooAnnotation(Foo.<error descr="'BAR' has private access in 'Foo'">BAR</error>)
|
||||
class Foo {
|
||||
private static final String BAR = "bar";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user