mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-98872 - assert: RedundantArrayForVarargsCallInspection$.checkCall
This commit is contained in:
+4
-1
@@ -102,8 +102,11 @@ public class RedundantArrayForVarargsCallInspection extends GenericsInspectionTo
|
||||
}
|
||||
PsiExpression lastArg = args[args.length - 1];
|
||||
PsiParameter lastParameter = parameters[args.length - 1];
|
||||
if (!lastParameter.isVarArgs()) {
|
||||
return;
|
||||
}
|
||||
PsiType lastParamType = lastParameter.getType();
|
||||
LOG.assertTrue(lastParamType instanceof PsiEllipsisType);
|
||||
LOG.assertTrue(lastParamType instanceof PsiEllipsisType, lastParamType);
|
||||
if (!(lastArg instanceof PsiNewExpression)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user