mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] more descriptive error message for Override annotation on static method ( IDEA-294005)
GitOrigin-RevId: cbd30e2f727120140a15b6cfd144a59552040143
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8963de463a
commit
62ce7483bd
+10
-1
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user