public static void notEmpty(final Object[] array, final String arrayName) {
        notNull(array, arrayName);

        if (array.length == 0) {
            throw new IllegalArgumentException("expecting " + maskNullArgument(arrayName) + " to contain 1 or more elements");
        }
    }
public static void notEmpty ( final Object [ ] array , final String arrayName ) { notNull ( array , arrayName ) ; if ( array . length == 0 ) { throw new IllegalArgumentException ( "expecting " + maskNullArgument ( arrayName ) + " to contain 1 or more elements" ) ; } }
Check that an array is not empty
@param array the array to check
@param arrayName the name of the array
@throws IllegalArgumentException if array is null or if the array is empty