mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: shorten qualified names for new return type (IDEA-155518)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
class Test {
|
||||
Object foo() {
|
||||
Object list = <selection>new ArrayList<String>();</selection>
|
||||
return list;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
class Test {
|
||||
Object foo() {
|
||||
Object list = newMethod();
|
||||
return list;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private Collection newMethod() {
|
||||
return new ArrayList<String>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user