mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WrapperTypeMayBePrimitive: ignore while mismatch parameter and arg count
EA-120929
This commit is contained in:
+1
@@ -174,6 +174,7 @@ public class WrapperTypeMayBePrimitiveInspection extends AbstractBaseJavaLocalIn
|
||||
if (method == null) return true;
|
||||
PsiParameter[] parameters = method.getParameterList().getParameters();
|
||||
int parameterIndex = parameters.length < argumentsIndex + 1 ? parameters.length - 1 : argumentsIndex;
|
||||
if (parameterIndex < 0) return false;
|
||||
PsiParameter parameter = parameters[parameterIndex];
|
||||
PsiType type = parameter.getType();
|
||||
if (type instanceof PsiPrimitiveType) {
|
||||
|
||||
Reference in New Issue
Block a user