mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
private modifier in interfaces: check for modifier combinations, body (IDEA-164596)
This commit is contained in:
+12
@@ -1,3 +1,15 @@
|
||||
interface A {
|
||||
private void m() {}
|
||||
}
|
||||
|
||||
interface B {
|
||||
<error descr="Private methods in interfaces should have a body">private void m()</error>;
|
||||
}
|
||||
|
||||
interface C {
|
||||
private <error descr="Illegal combination of modifiers: 'default' and 'private'">default</error> void m() {}
|
||||
}
|
||||
|
||||
interface D {
|
||||
private static void m() {}
|
||||
}
|
||||
Reference in New Issue
Block a user