mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
add single member static import: do not remove qualifier when members with the same name exist in the hierarchy
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Add static import for 'test.Bar.f'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.f;
|
||||
|
||||
class Bar {
|
||||
public static final void f() {}
|
||||
}
|
||||
public class Foo {
|
||||
public static final void f(int i) {}
|
||||
{
|
||||
Bar.<caret>f();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// "Add static import for 'test.Bar.f'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.f;
|
||||
|
||||
class Bar {
|
||||
public static final void f() {}
|
||||
}
|
||||
public class Foo extends FooSuper{
|
||||
{
|
||||
Bar.<caret>f();
|
||||
}
|
||||
}
|
||||
|
||||
class FooSuper {
|
||||
public static final void f(int i) {}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Add static import for 'test.Bar.f'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
public static final void f() {}
|
||||
}
|
||||
public class Foo {
|
||||
public static final void f(int i) {}
|
||||
{
|
||||
Bar.<caret>f();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// "Add static import for 'test.Bar.f'" "true"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
public static final void f() {}
|
||||
}
|
||||
public class Foo extends FooSuper{
|
||||
{
|
||||
Bar.<caret>f();
|
||||
}
|
||||
}
|
||||
|
||||
class FooSuper {
|
||||
public static final void f(int i) {}
|
||||
}
|
||||
Reference in New Issue
Block a user