mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
safe delete: ensure used static imports are preserved (IDEA-131240)
(cherry picked from commit e4ed1b3bdf3ea55047f0a94fbef1756e9d32c11c)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package foo;
|
||||
public class A {
|
||||
public static void foo(int i){}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package foo;
|
||||
|
||||
import static foo.A.foo;
|
||||
|
||||
public class B {
|
||||
{
|
||||
foo(1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package foo;
|
||||
public class A {
|
||||
public static void foo(int i){}
|
||||
public static void f<caret>oo(String i){}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package foo;
|
||||
|
||||
import static foo.A.foo;
|
||||
|
||||
public class B {
|
||||
{
|
||||
foo(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user