mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
36 lines
903 B
Java
36 lines
903 B
Java
// "Add on-demand static import for 'test.Bar'" "true-preview"
|
|
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.
|
|
}
|
|
} |