mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
extract method: ensure folded replacement uses correct names, ensure invalid elements are skipped (IDEA-157519)
This commit is contained in:
+11
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user