mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
fix IDEA-112499 for on demand imports
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
// "Add on demand static import for 'test.Bar'" "true"
|
||||
package test;
|
||||
|
||||
import static test.Bar.*;
|
||||
|
||||
class Bar {
|
||||
public static final void f() {}
|
||||
}
|
||||
public class Foo {
|
||||
public static final void f(int i) {}
|
||||
|
||||
{
|
||||
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Add on demand static import for 'java.lang.Math'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.*;
|
||||
|
||||
public class C {{
|
||||
abs(1.0);
|
||||
max(1, 2);
|
||||
}}
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add on demand static import for 'test.Bar'" "true"
|
||||
// "Add on demand static import for 'test.Bar'" "false"
|
||||
package test;
|
||||
|
||||
class Bar {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Add on demand static import for 'java.lang.Math'" "true"
|
||||
package test;
|
||||
|
||||
import static java.lang.Math.*;
|
||||
|
||||
public class C {{
|
||||
abs(1.0);
|
||||
<caret>Math.max(1, 2);
|
||||
}}
|
||||
Reference in New Issue
Block a user