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