mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
forbid private/protected class modifiers inside anonymous classes (IDEA-64188)
This commit is contained in:
@@ -102,5 +102,13 @@ public class a {
|
||||
public void run() {}
|
||||
};
|
||||
}
|
||||
|
||||
void withanonymous() {
|
||||
new Object() {
|
||||
<error descr="Modifier 'private' not allowed here">private</error> class RT {}
|
||||
private void method() {}
|
||||
private int myI;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user