mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
inline parameter: safely inline recursive calls (IDEA-55529)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import java.lang.Integer;
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class ExpData {
|
||||
private final List<Integer> myResult = new ArrayList<Integer>();
|
||||
{
|
||||
m(10, myResult);
|
||||
}
|
||||
|
||||
private void m(int i, List<Integer> re<caret>sult) {
|
||||
if (i > 0) {
|
||||
m(i - 1, result);
|
||||
}
|
||||
result.add(i);
|
||||
m(2, new ArrayList<Integer>());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user