protected void ensureNoFlags(final String flags) {
        if (flags == null || flags.isEmpty()) return;
        throw FormatException.formatFlagsMismatch(flags, getFormatName());
    }
protected void ensureNoFlags ( final String flags ) { if ( flags == null || flags . isEmpty ( ) ) return ; throw FormatException . formatFlagsMismatch ( flags , getFormatName ( ) ) ; }
Ensures no flags are given.
@param flags
@throws FormatException if flags is not null or empty.