Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/qualifyMethodCall/afterNonStaticMethodFromNonStaticContext2.java
Andrey.Cherkasov e4f850f492 [java-inspections] Qualify a method call: provide a quick-fix when non-static class is nested within a static one
IDEA-255881
IJ-CR-21030

GitOrigin-RevId: 710d2c6e2aa096646ad7a4a96d9b75d3d87711ce
2022-02-21 19:37:25 +00:00

15 lines
214 B
Java

// "Qualify the call with 'A.B.this'" "true"
class A {
static class B {
class C {
String name(String key) {
return B.this.name();
}
}
String name() {
return "";
}
}
}