[LANG-724] Convert Validate.noNullElements(Object[]) to varargs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1147524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
30bae8f0ff
commit
4660e5159b
|
@ -535,8 +535,8 @@ public class Validate {
|
|||
* @throws IllegalArgumentException if an element is {@code null}
|
||||
* @see #noNullElements(Object[], String, Object...)
|
||||
*/
|
||||
public static <T> T[] noNullElements(T[] array) {
|
||||
return noNullElements(array, DEFAULT_NO_NULL_ELEMENTS_ARRAY_EX_MESSAGE);
|
||||
public static <T> T[] noNullElements(T... array) {
|
||||
return Validate.<T> noNullElements((T[]) array, DEFAULT_NO_NULL_ELEMENTS_ARRAY_EX_MESSAGE);
|
||||
}
|
||||
|
||||
// noNullElements iterable
|
||||
|
|
Loading…
Reference in New Issue