Files
Tagir Valeev 33ca32a1bc [java-intentions] ReplaceImplementsWithStaticImportAction: ModCommand
GitOrigin-RevId: 53f1e33ee88b8336a3cd20d55bd640cfbc88c580
2023-10-26 10:47:21 +00:00

19 lines
293 B
Java

import static I1.BAZZ;
import static II.FOO;
// "Replace implements with static import" "true-preview"
public class X {
void bar() {
System.out.println(FOO);
System.out.println(BAZZ);
}
}
interface II extends I1{
String FOO = "foo";
}
interface I1 {
String BAZZ = "bazz";
}