extract method: ensure folded replacement uses correct names, ensure invalid elements are skipped (IDEA-157519)

This commit is contained in:
Anna Kozlova
2016-06-16 16:20:44 +03:00
parent c7fdb26129
commit b88bc552ec
5 changed files with 51 additions and 21 deletions
@@ -0,0 +1,11 @@
class Test {
void h(int i, String[] s, String[] t) {
final String s1 = newMethod(t[i], s[x.length()]);
System.out.println(s1);
}
private String newMethod(String x, String s) {
System.out.println(x);
return s;
}
}