mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
Java: Restored folding of nested function calls when extracting method (IDEA-175221, IDEA-167255)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import java.util.List;
|
||||
class C {
|
||||
void foo(int[] a, List<Integer> b) {
|
||||
int i = 1;
|
||||
int n = newMethod(bar(a[i], b.get(i)));
|
||||
System.out.println(n);
|
||||
}
|
||||
|
||||
private int newMethod(int bar) {
|
||||
return bar;
|
||||
}
|
||||
|
||||
int bar(int a, int b) {
|
||||
return a + b;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user