Java: Restored folding of nested function calls when extracting method (IDEA-175221, IDEA-167255)

This commit is contained in:
Pavel Dolgov
2017-07-06 15:53:51 +03:00
parent d557cef488
commit 0f7021bfe0
4 changed files with 33 additions and 1 deletions
@@ -0,0 +1,12 @@
import java.util.List;
class C {
void foo(int[] a, List<Integer> b) {
int i = 1;
int n = <selection>bar(a[i], b.get(i))</selection>;
System.out.println(n);
}
int bar(int a, int b) {
return a + b;
}
}