mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
change signature AIOOBE
This commit is contained in:
@@ -491,7 +491,7 @@ public class JavaChangeSignatureUsageProcessor implements ChangeSignatureUsagePr
|
||||
final PsiExpression[] args) throws IncorrectOperationException {
|
||||
final PsiElementFactory factory = JavaPsiFacade.getInstance(list.getProject()).getElementFactory();
|
||||
final int index = info.getOldIndex();
|
||||
if (index >= 0) {
|
||||
if (index >= 0 && index < args.length) {
|
||||
return args[index];
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
|
||||
void f<caret>oo(int... i) {}
|
||||
|
||||
{
|
||||
foo();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
|
||||
void foo(int i, boolean b) {}
|
||||
|
||||
{
|
||||
foo(, );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user