private void initOptions(Options options) {
            this.dumpOnError = options.isSet(DOE);
            this.promptOnError = options.isSet(PROMPT);
            this.emitWarnings = options.isUnset(XLINT_CUSTOM, "none");
            this.suppressNotes = options.isSet("suppressNotes");
            this.MaxErrors = getIntOption(options, XMAXERRS, getDefaultMaxErrors());
            this.MaxWarnings = getIntOption(options, XMAXWARNS, getDefaultMaxWarnings());

            boolean rawDiagnostics = options.isSet("rawDiagnostics");
            this.diagFormatter = rawDiagnostics ? new RawDiagnosticFormatter(options) :
                                                  new BasicDiagnosticFormatter(options, messages);

            String ek = options.get("expectKeys");
            if (ek != null)
                expectDiagKeys = new HashSet<String>(Arrays.asList(ek.split(", *")));
        }
private void initOptions ( Options options ) { this . dumpOnError = options . isSet ( DOE ) ; this . promptOnError = options . isSet ( PROMPT ) ; this . emitWarnings = options . isUnset ( XLINT_CUSTOM , "none" ) ; this . suppressNotes = options . isSet ( "suppressNotes" ) ; this . MaxErrors = getIntOption ( options , XMAXERRS , getDefaultMaxErrors ( ) ) ; this . MaxWarnings = getIntOption ( options , XMAXWARNS , getDefaultMaxWarnings ( ) ) ; boolean rawDiagnostics = options . isSet ( "rawDiagnostics" ) ; this . diagFormatter = rawDiagnostics ? new RawDiagnosticFormatter ( options ) : new BasicDiagnosticFormatter ( options , messages ) ; String ek = options . get ( "expectKeys" ) ; if ( ek != null ) expectDiagKeys = new HashSet < String > ( Arrays . asList ( ek . split ( ", *" ) ) ) ; }
where