mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
fix IDEA-112499 for single member static imports
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Add static import for 'java.lang.Math.abs'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.abs;
|
||||
|
||||
public class X {{
|
||||
abs(1.0);
|
||||
}}
|
||||
@@ -1,14 +0,0 @@
|
||||
// "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();
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
// "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,8 @@
|
||||
// "Add static import for 'java.lang.Math.abs'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.abs;
|
||||
|
||||
public class X {{
|
||||
Math.abs<caret>(1.0);
|
||||
}}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add static import for 'test.Bar.f'" "true"
|
||||
// "Add static import for 'test.Bar.f'" "false"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add static import for 'test.Bar.f'" "true"
|
||||
// "Add static import for 'test.Bar.f'" "false"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
|
||||
Reference in New Issue
Block a user