@@ -440,13 +440,15 @@ private static boolean isFirstEntryInArray(Object value, @Nullable Object possib
440
440
}
441
441
442
442
/**
443
- * Package up the arguments so that they correctly match what is expected in requiredParameterTypes.
444
- * <p>For example, if requiredParameterTypes is {@code (int, String[])} because the second parameter
445
- * was declared {@code String...}, then if arguments is {@code [1,"a","b"]} then it must be
446
- * repackaged as {@code [1,new String[]{"a","b"}]} in order to match the expected types.
443
+ * Package up the supplied {@code args} so that they correctly match what is
444
+ * expected in {@code requiredParameterTypes}.
445
+ * <p>For example, if {@code requiredParameterTypes} is {@code (int, String[])}
446
+ * because the second parameter was declared as {@code String...}, then if
447
+ * {@code args} is {@code [1, "a", "b"]} it must be repackaged as
448
+ * {@code [1, new String[] {"a", "b"}]} in order to match the expected types.
447
449
* @param requiredParameterTypes the types of the parameters for the invocation
448
- * @param args the arguments to be setup ready for the invocation
449
- * @return a repackaged array of arguments where any varargs setup has been done
450
+ * @param args the arguments to be set up for the invocation
451
+ * @return a repackaged array of arguments where any varargs setup has performed
450
452
*/
451
453
public static Object [] setupArgumentsForVarargsInvocation (Class <?>[] requiredParameterTypes , Object ... args ) {
452
454
// Check if array already built for final argument
0 commit comments