Java: Support parameter folding in parametrized duplicates of the extracted method (IDEA-179924)

This commit is contained in:
Pavel Dolgov
2017-10-04 16:58:16 +03:00
parent 3bcf150c91
commit 32f0a9f3ef
15 changed files with 321 additions and 31 deletions
@@ -0,0 +1,13 @@
import java.util.List;
class Test {
void foo(String[] a, List<String> b) {
for (int i = 0; i < a.length; i++) {
<selection>System.out.println("a:" + a[i]);</selection>
}
for (int i = 0; i < b.size(); i++) {
System.out.println("b:" + b.get(i));
}
}
}