diff -r 33abf479f202 -r bfec2a1cc869 src/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java Wed Nov 14 17:23:10 2012 -0800 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java Thu Nov 15 09:18:36 2012 -0800 @@ -198,6 +198,8 @@ */ public static final int CONTEXT_CLASS_USE_HEADER = 33; + public final ConfigurationImpl configuration; + /** * The integer indicating the location of the link. */ @@ -214,20 +216,22 @@ public String styleName =""; /** - * The valueof the target. + * The value of the target. */ public String target = ""; /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param classDoc the class to link to. * @param label the label for the link. * @param target the value of the target attribute. */ - public LinkInfoImpl (int context, ClassDoc classDoc, String label, - String target){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, ClassDoc classDoc, String label, String target) { + this.configuration = configuration; this.classDoc = classDoc; this.label = label; this.target = target; @@ -237,6 +241,7 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param classDoc the class to link to. * @param where the value of the marker #. @@ -244,8 +249,10 @@ * @param isStrong true if the link should be strong. * @param styleName String style of text defined in style sheet. */ - public LinkInfoImpl (int context, ClassDoc classDoc, String where, String label, - boolean isStrong, String styleName){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, ClassDoc classDoc, String where, String label, + boolean isStrong, String styleName) { + this.configuration = configuration; this.classDoc = classDoc; this.where = where; this.label = label; @@ -257,14 +264,17 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param classDoc the class to link to. * @param where the value of the marker #. * @param label the label for the link. * @param isStrong true if the link should be strong. */ - public LinkInfoImpl (int context, ClassDoc classDoc, String where, String label, - boolean isStrong){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, ClassDoc classDoc, String where, String label, + boolean isStrong) { + this.configuration = configuration; this.classDoc = classDoc; this.where = where; this.label = label; @@ -275,10 +285,13 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param classDoc the class to link to. * @param label the label for the link. */ - public LinkInfoImpl (ClassDoc classDoc, String label){ + public LinkInfoImpl(ConfigurationImpl configuration, + ClassDoc classDoc, String label) { + this.configuration = configuration; this.classDoc = classDoc; this.label = label; setContext(context); @@ -287,12 +300,15 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param executableMemberDoc the member to link to. * @param isStrong true if the link should be strong. */ - public LinkInfoImpl (int context, ExecutableMemberDoc executableMemberDoc, - boolean isStrong){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, ExecutableMemberDoc executableMemberDoc, + boolean isStrong) { + this.configuration = configuration; this.executableMemberDoc = executableMemberDoc; this.isStrong = isStrong; setContext(context); @@ -301,11 +317,14 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param classDoc the class to link to. * @param isStrong true if the link should be strong. */ - public LinkInfoImpl (int context, ClassDoc classDoc, boolean isStrong){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, ClassDoc classDoc, boolean isStrong) { + this.configuration = configuration; this.classDoc = classDoc; this.isStrong = isStrong; setContext(context); @@ -314,10 +333,13 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param type the class to link to. */ - public LinkInfoImpl (int context, Type type){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, Type type) { + this.configuration = configuration; this.type = type; setContext(context); } @@ -325,11 +347,14 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param type the class to link to. * @param isVarArg true if this is a link to a var arg. */ - public LinkInfoImpl (int context, Type type, boolean isVarArg){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, Type type, boolean isVarArg) { + this.configuration = configuration; this.type = type; this.isVarArg = isVarArg; setContext(context); @@ -338,13 +363,16 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param type the class to link to. * @param label the label for the link. * @param isStrong true if the link should be strong. */ - public LinkInfoImpl (int context, Type type, String label, - boolean isStrong){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, Type type, String label, + boolean isStrong) { + this.configuration = configuration; this.type = type; this.label = label; this.isStrong = isStrong; @@ -354,13 +382,16 @@ /** * Construct a LinkInfo object. * + * @param configuration the configuration data for the doclet * @param context the context of the link. * @param classDoc the class to link to. * @param label the label for the link. * @param isStrong true if the link should be strong. */ - public LinkInfoImpl (int context, ClassDoc classDoc, String label, - boolean isStrong){ + public LinkInfoImpl(ConfigurationImpl configuration, + int context, ClassDoc classDoc, String label, + boolean isStrong) { + this.configuration = configuration; this.classDoc = classDoc; this.label = label; this.isStrong = isStrong; @@ -448,6 +479,6 @@ * desired place. */ public boolean isLinkable() { - return Util.isLinkable(classDoc, ConfigurationImpl.getInstance()); + return Util.isLinkable(classDoc, configuration); } }