Files
openide/java/java-tests/testData/refactoring/inlineMethod/StaticInterfaceMethod.java
Bas Leijdekkers 7178d5454c Java: correctly qualify method call when it is inlined from static interface method (IDEA-362625)
(cherry picked from commit 2f32664c77558fc4507a8a6ecc327f6c91b7d815)

IJ-CR-149100

GitOrigin-RevId: e224c59e90ff32687ebc67a278d1e63b52095fbd
2024-11-13 15:13:23 +00:00

21 lines
341 B
Java

interface AccountModule {
static void createAccount(String a, String b) {
}
default void createAccount(String a) {
createAccount(a, getB());
}
String getB();
}
class UseModule implements AccountModule {
public void createSome() {
<caret>createAccount("");
}
@Override
public String getB() {
return "";
}
}