--- old/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/TagletManager.java 2020-01-21 10:51:20.925072316 -0800 +++ new/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/TagletManager.java 2020-01-21 10:51:20.605058177 -0800 @@ -58,6 +58,7 @@ import jdk.javadoc.doclet.DocletEnvironment; import jdk.javadoc.doclet.Taglet.Location; import jdk.javadoc.internal.doclets.toolkit.BaseConfiguration; +import jdk.javadoc.internal.doclets.toolkit.BaseOptions; import jdk.javadoc.internal.doclets.toolkit.DocletElement; import jdk.javadoc.internal.doclets.toolkit.Messages; import jdk.javadoc.internal.doclets.toolkit.Resources; @@ -177,33 +178,31 @@ */ private final boolean showTaglets; + private final String tagletPath; + /** * Construct a new {@code TagletManager}. - * @param nosince true if we do not want to use @since tags. - * @param showversion true if we want to use @version tags. - * @param showauthor true if we want to use @author tags. - * @param javafx indicates whether javafx is active. * @param configuration the configuration for this taglet manager */ - public TagletManager(boolean nosince, boolean showversion, - boolean showauthor, boolean javafx, - BaseConfiguration configuration) { + public TagletManager(BaseConfiguration configuration) { overriddenStandardTags = new HashSet<>(); potentiallyConflictingTags = new HashSet<>(); standardTags = new HashSet<>(); standardTagsLowercase = new HashSet<>(); unseenCustomTags = new HashSet<>(); allTaglets = new LinkedHashMap<>(); - this.nosince = nosince; - this.showversion = showversion; - this.showauthor = showauthor; - this.javafx = javafx; + BaseOptions options = configuration.getOptions(); + this.nosince = options.noSince; + this.showversion = options.showVersion; + this.showauthor = options.showAuthor; + this.javafx = options.javafx; this.docEnv = configuration.docEnv; this.doclet = configuration.doclet; this.messages = configuration.getMessages(); this.resources = configuration.getResources(); - this.showTaglets = configuration.showTaglets; + this.showTaglets = options.showTaglets; this.utils = configuration.utils; + this.tagletPath = options.tagletPath; initStandardTaglets(); } @@ -230,10 +229,9 @@ /** * Initializes the location TAGLET_PATH which is used to locate the custom taglets. * @param fileManager the file manager to load classes and resources. - * @param tagletPath the path to the custom taglet. * @throws IOException if an error occurs while setting the location. */ - public void initTagletPath(JavaFileManager fileManager, String tagletPath) throws IOException { + public void initTagletPath(JavaFileManager fileManager) throws IOException { if (fileManager instanceof StandardJavaFileManager) { StandardJavaFileManager sfm = (StandardJavaFileManager)fileManager; if (tagletPath != null) {