mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 21:15:58 +07:00
forbid access through outer class for anonymous (IDEA-182430)
This commit is contained in:
+2
@@ -3,12 +3,14 @@ enum EnumPrivateMethodTest {
|
||||
@Override
|
||||
public void execute() {
|
||||
this.<error descr="'firstMethod()' has private access in 'EnumPrivateMethodTest'">firstMethod</error>();
|
||||
String s = this.<error descr="'myDescription' has private access in 'EnumPrivateMethodTest'">myDescription</error>;
|
||||
}
|
||||
};
|
||||
|
||||
public abstract void execute();
|
||||
|
||||
private void firstMethod() {}
|
||||
private final String myDescription = "description";
|
||||
}
|
||||
|
||||
abstract class EnumPrivateMethodTest1 {
|
||||
|
||||
Reference in New Issue
Block a user