private modifier in interfaces: check for modifier combinations, body (IDEA-164596)

This commit is contained in:
Anna.Kozlova
2016-11-28 15:38:48 +01:00
parent ae6793de43
commit d4a9f70ca8
3 changed files with 20 additions and 3 deletions
@@ -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() {}
}