From 240fd7e38c47f96cfe23c2cd4625d976756ef686 Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Wed, 12 Jul 2017 19:04:23 +0200 Subject: [PATCH] junit 5: support Object[][] in MethodSource return type (IDEA-175753) --- .../codeInsight/JUnit5MalformedParameterizedInspection.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt b/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt index b354b4c7f97f..a2c6bc07c3fb 100644 --- a/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt +++ b/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt @@ -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") } }