mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
add single static import: don't replace instance member calls (IDEA-153929)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import foo.Clazz;
|
||||
|
||||
class Test {
|
||||
void bar(Clazz a){
|
||||
Clazz.pri<caret>nt();
|
||||
Clazz.print(1);
|
||||
a.print("");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import foo.Clazz;
|
||||
|
||||
import static foo.Clazz.print;
|
||||
|
||||
class Test {
|
||||
void bar(Clazz a){
|
||||
print();
|
||||
print(1);
|
||||
a.print("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user