mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
Unify add/remove modifier fixes Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 83db9a85524edc7c39737a75b470e0697a9c02db
28 lines
743 B
Java
28 lines
743 B
Java
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() {}
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
@interface G {
|
|
<error descr="Modifier 'private' not allowed here">private</error> String m();
|
|
<error descr="Modifier 'private' not allowed here">private</error> String m1() {return "";}
|
|
} |