extract method: suggested names for folded params should be unique (IDEA-120974)

This commit is contained in:
Anna Kozlova
2014-12-01 20:54:14 +01:00
parent 4ea62b333e
commit f50575a468
4 changed files with 32 additions and 5 deletions
@@ -0,0 +1,6 @@
class Test {
String get(String[] args) {
<selection>String arg = args[0];
return arg;</selection>
}
}
@@ -0,0 +1,10 @@
class Test {
String get(String[] args) {
return newMethod(args[0]);
}
private String newMethod(String arg1) {
String arg = arg1;
return arg;
}
}