mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit 5: support Object[][] in MethodSource return type (IDEA-175753)
This commit is contained in:
+3
-1
@@ -191,7 +191,9 @@ class JUnit5MalformedParameterizedInspection : BaseJavaBatchLocalInspectionTool(
|
||||
holder.registerProblem(attributeValue,
|
||||
"Method source \'$providerName\' must have one of the following return type: Stream<?>, Iterator<?>, Iterable<?> or Object[]")
|
||||
}
|
||||
else if (hasMultipleParameters(method) && !isArgumentsInheritor(componentType) && !componentType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) {
|
||||
else if (hasMultipleParameters(method) && !isArgumentsInheritor(componentType) &&
|
||||
!componentType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT) &&
|
||||
!componentType.deepComponentType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) {
|
||||
holder.registerProblem(attributeValue, "Multiple parameters have to be wrapped in Arguments")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user