From 12f7f98803bdc837aa4f8208aab7956faa0dec0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Mon, 18 Nov 2024 11:43:51 +0100 Subject: [PATCH] Fix junit 5 warning return type of factory method must be a collection or array or stream --- .../net/sourceforge/pmd/lang/ast/impl/AbstractNodeTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-core/src/test/java/net/sourceforge/pmd/lang/ast/impl/AbstractNodeTest.java b/pmd-core/src/test/java/net/sourceforge/pmd/lang/ast/impl/AbstractNodeTest.java index 824086f38e..430f6b3dc8 100644 --- a/pmd-core/src/test/java/net/sourceforge/pmd/lang/ast/impl/AbstractNodeTest.java +++ b/pmd-core/src/test/java/net/sourceforge/pmd/lang/ast/impl/AbstractNodeTest.java @@ -48,7 +48,7 @@ class AbstractNodeTest { return childIndexes; } - static Object childrenAndGrandChildrenIndexes() { + static Object[] childrenAndGrandChildrenIndexes() { final Integer[] childrenIndexes = childrenIndexes(); final Integer[] grandChildrenIndexes = grandChildrenIndexes(); final Object[] indexes = new Object[childrenIndexes.length * grandChildrenIndexes.length];