[java] more descriptive error message for Override annotation on static method ( IDEA-294005)

GitOrigin-RevId: cbd30e2f727120140a15b6cfd144a59552040143
This commit is contained in:
Anna Kozlova
2022-05-13 21:32:57 +00:00
committed by intellij-monorepo-bot
parent 8963de463a
commit 62ce7483bd
4 changed files with 17 additions and 2 deletions
@@ -107,4 +107,13 @@ interface BMultiple {
void m() throws java.io.EOFException, sqlExcept, timeoutEx;
}
interface DMultiple extends AMultiple, BMultiple {}
interface DMultiple extends AMultiple, BMultiple {}
interface WithStatic {
static void f() {}
}
class WithStaticImpl implements WithStatic {
<error descr="Static methods cannot be annotated with @Override">@Override</error>
static void f() {}
}