extract method: shorten qualified names for new return type (IDEA-155518)

This commit is contained in:
Anna.Kozlova
2016-05-04 13:47:03 +02:00
parent 4a82c5f5d0
commit 9b9a8d4051
4 changed files with 30 additions and 1 deletions
@@ -0,0 +1,8 @@
import java.util.ArrayList;
class Test {
Object foo() {
Object list = <selection>new ArrayList<String>();</selection>
return list;
}
}
@@ -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>();
}
}