extract method duplicates: distinguish method overloads (IDEA-97777)

This commit is contained in:
Anna Kozlova
2013-06-17 21:10:25 +04:00
parent 059e0c6691
commit a1096fae35
4 changed files with 56 additions and 0 deletions
@@ -0,0 +1,21 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class Test {
public void myTest(List list, String s1, String s2) {
}
public void myTest(Collection list, String s1, String s2) {
}
public void usage() {
List list = new ArrayList();
String aa = "AA";
String bb = "bb";
myTest(list, aa, bb);
Collection col = new ArrayList();
<selection>myTest(col, aa, bb);</selection>
}
}