Fix junit 5 warning

return type of factory method must be a collection
or array or stream
This commit is contained in:
Clément Fournier 2024-11-18 11:43:51 +01:00
parent 79c0ce0415
commit 12f7f98803
No known key found for this signature in database
GPG Key ID: 6F9389D8E390BD4C

View File

@ -48,7 +48,7 @@ class AbstractNodeTest {
return childIndexes; return childIndexes;
} }
static Object childrenAndGrandChildrenIndexes() { static Object[] childrenAndGrandChildrenIndexes() {
final Integer[] childrenIndexes = childrenIndexes(); final Integer[] childrenIndexes = childrenIndexes();
final Integer[] grandChildrenIndexes = grandChildrenIndexes(); final Integer[] grandChildrenIndexes = grandChildrenIndexes();
final Object[] indexes = new Object[childrenIndexes.length * grandChildrenIndexes.length]; final Object[] indexes = new Object[childrenIndexes.length * grandChildrenIndexes.length];