public static void validateNotEmpty ( Properties propertiesToCheck , String argumentName ) throws NullArgumentException { validateNotNull ( propertiesToCheck , argumentName ) ; if ( propertiesToCheck . isEmpty ( ) ) { throw new NullArgumentException ( argumentName + IS_EMPTY ) ; } }
Validates that the Properties instance is not null and that it has entries .