< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ToolEnvironment.java

Print this page

        

@@ -156,13 +156,13 @@
         elements =  JavacElements.instance(context);
         typeutils = JavacTypes.instance(context);
         elementToTreePath = new HashMap<>();
     }
 
-    public void initialize(Map<ToolOption, Object> toolOpts) {
-        this.quiet = (boolean)toolOpts.getOrDefault(ToolOption.QUIET, false);
-        this.ignoreSourceErrors = (boolean)toolOpts.getOrDefault(ToolOption.IGNORE_SOURCE_ERRORS, false);
+    public void initialize(ToolOptions options) {
+        this.quiet = options.quiet();
+        this.ignoreSourceErrors = options.ignoreSourceErrors();
     }
 
     /**
      * Load a class by qualified name.
      */
< prev index next >