mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
18 lines
290 B
Java
18 lines
290 B
Java
import static I.FOO;
|
|
import static I1.BAZZ;
|
|
|
|
// "Replace implements with static import" "true-preview"
|
|
public class X {
|
|
void bar() {
|
|
System.out.println(FOO);
|
|
System.out.println(BAZZ);
|
|
}
|
|
}
|
|
|
|
interface I extends I1{
|
|
String FOO = "foo";
|
|
}
|
|
|
|
interface I1 {
|
|
String BAZZ = "bazz";
|
|
} |