Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/addOnDemandStaticImport/afterConflict2.java
Bas Leijdekkers 311f965f20 on demand static import -> on-demand static import (IDEA-221475)
GitOrigin-RevId: 3cdbe9a8fbad5b785934f8f6280e4140cb8aa75c
2019-10-03 16:04:14 +00:00

36 lines
900 B
Java

// "Add on-demand static import for 'test.Bar'" "true"
package test;
import static test.Bar.*;
class Bar {
public static final void f() {
}
}
public class Foo {
{
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
}
static class D {
public static final void f(int i) {
}
{
Bar.f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
}
}
{
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
}
{
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
}
{
f(); // invoke 'add on-demand static import' for Bar class here. The call is now done to other method.
}
}