mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java] report static interface field accessed via instance (IDEA-348722)
GitOrigin-RevId: f8b1b2036656ff5a4579dff82592e7bf4cfad8f9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
babfae316e
commit
b474e948e3
@@ -0,0 +1,9 @@
|
||||
// "Qualify static 'NAME' access with reference to class 'Grotesk'" "true-preview"
|
||||
class Dreadful implements Grotesk {
|
||||
void x() {
|
||||
System.out.println(Grotesk.NAME);
|
||||
}
|
||||
}
|
||||
interface Grotesk {
|
||||
String NAME = "Grotesk";
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Qualify static 'NAME' access with reference to class 'Grotesk'" "true-preview"
|
||||
class Dreadful implements Grotesk {
|
||||
void x() {
|
||||
System.out.println(this<caret>.NAME);
|
||||
}
|
||||
}
|
||||
interface Grotesk {
|
||||
String NAME = "Grotesk";
|
||||
}
|
||||
Reference in New Issue
Block a user