mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
36 lines
450 B
Java
36 lines
450 B
Java
// "Import static method..." "true-preview"
|
|
package foo;
|
|
|
|
import static foo.B.a;
|
|
|
|
public class X {
|
|
{
|
|
a("");
|
|
}
|
|
}
|
|
|
|
class B {
|
|
|
|
public static Integer a(Integer i) {
|
|
return 1;
|
|
}
|
|
|
|
public static Integer a() {
|
|
return 1;
|
|
}
|
|
|
|
public static Integer a(String s) {
|
|
return 1;
|
|
}
|
|
|
|
public static Integer a(String s, String s) {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
class A {
|
|
public static Integer a(String s) {
|
|
return 1;
|
|
}
|
|
}
|