extract method: ensure call arguments are not changed during body substitution

This commit is contained in:
Anna Kozlova
2016-06-20 10:29:14 +03:00
parent 275798b5e1
commit a664f8b8d6
2 changed files with 5 additions and 3 deletions
@@ -1,6 +1,6 @@
class Test {
void h(int i, String[] s, String[] t) {
final String s1 = newMethod(t[i], s[x.length()]);
final String s1 = newMethod(t[i], s[t[i].length()]);
System.out.println(s1);
}