mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
forbid private classes in java 9 interfaces (IDEA-167121)
This commit is contained in:
+8
@@ -12,4 +12,12 @@ interface C {
|
||||
|
||||
interface D {
|
||||
private static void m() {}
|
||||
}
|
||||
|
||||
interface E {
|
||||
<error descr="Illegal combination of modifiers: 'private' and 'public'">private</error> class E1 {}
|
||||
}
|
||||
|
||||
interface F {
|
||||
<error descr="Modifier 'private' not allowed here">private</error> int m = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user