mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
IDEA-122548 Exception while inlining method
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
List<String> foo(String[] strs)
|
||||
{
|
||||
final List<String> result = new ArrayList<String>();
|
||||
int start = -1;
|
||||
for (int i = 0; i < strs.length; i++)
|
||||
{
|
||||
if (idx(i) == 42 && start == -1)
|
||||
{
|
||||
start = i;
|
||||
} else if (idx(i) != 24 && start != -1)
|
||||
{
|
||||
result.add("".substring(id<caret>x(start)));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private static int idx(int i) {
|
||||
return i;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user