diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java index 1ce66f77117..e9d69c10a44 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractExecutableMemberWriter.java @@ -71,7 +71,7 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite member.position().line() != classdoc.position().line()) { writer.printSrcLink(member, member.name()); } else { - bold(member.name()); + strong(member.name()); } writeParameters(member); writeExceptions(member); @@ -87,10 +87,10 @@ public abstract class AbstractExecutableMemberWriter extends AbstractMemberWrite protected void writeSummaryLink(int context, ClassDoc cd, ProgramElementDoc member) { ExecutableMemberDoc emd = (ExecutableMemberDoc)member; String name = emd.name(); - writer.bold(); + writer.strong(); writer.printDocLink(context, cd, (MemberDoc) emd, name, false); - writer.boldEnd(); + writer.strongEnd(); writer.displayLength = name.length(); writeParameters(emd, false); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java index 84a1d70d596..f27094d3e21 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractIndexWriter.java @@ -78,12 +78,12 @@ public class AbstractIndexWriter extends HtmlDocletWriter { } /** - * Print the text "Index" in bold format in the navigation bar. + * Print the text "Index" in strong format in the navigation bar. */ protected void navLinkIndex() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.Index"); + strongText("doclet.Index"); fontEnd(); navCellEnd(); } @@ -98,7 +98,7 @@ public class AbstractIndexWriter extends HtmlDocletWriter { protected void generateContents(Character unicode, List memberlist) { anchor("_" + unicode + "_"); h2(); - bold(unicode.toString()); + strong(unicode.toString()); h2End(); dl(); for (int i = 0; i < memberlist.size(); i++) { @@ -195,14 +195,14 @@ public class AbstractIndexWriter extends HtmlDocletWriter { protected void printComment(ProgramElementDoc element) { Tag[] tags; if (Util.isDeprecated(element)) { - boldText("doclet.Deprecated"); space(); + strongText("doclet.Deprecated"); space(); if ((tags = element.tags("deprecated")).length > 0) printInlineDeprecatedComment(element, tags[0]); } else { ClassDoc cont = element.containingClass(); while (cont != null) { if (Util.isDeprecated(cont)) { - boldText("doclet.Deprecated"); space(); + strongText("doclet.Deprecated"); space(); break; } cont = cont.containingClass(); diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java index f540ad5b85e..32e50829523 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractMemberWriter.java @@ -98,8 +98,8 @@ public abstract class AbstractMemberWriter { writer.displayLength++; } - protected void bold(String str) { - writer.bold(str); + protected void strong(String str) { + writer.strong(str); writer.displayLength += str.length(); } @@ -321,7 +321,7 @@ public abstract class AbstractMemberWriter { if (deprmembers.size() > 0) { writer.tableIndexSummary(); writer.tableHeaderStart("#CCCCFF"); - writer.boldText(headingKey); + writer.strongText(headingKey); writer.tableHeaderEnd(); for (int i = 0; i < deprmembers.size(); i++) { ProgramElementDoc member =(ProgramElementDoc)deprmembers.get(i); @@ -363,7 +363,7 @@ public abstract class AbstractMemberWriter { if (cd != null && !(pgmdoc instanceof ConstructorDoc) && !(pgmdoc instanceof ClassDoc)) { // Add class context - writer.bold(cd.name() + "."); + writer.strong(cd.name() + "."); } writeSummaryLink( pgmdoc instanceof ClassDoc ? diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java index b845d84b480..36742cf7f95 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java @@ -137,13 +137,13 @@ public abstract class AbstractPackageIndexWriter extends HtmlDocletWriter { } /** - * Highlight "Overview" in the bold format, in the navigation bar as this + * Highlight "Overview" in the strong format, in the navigation bar as this * is the overview page. */ protected void navLinkContents() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.Overview"); + strongText("doclet.Overview"); fontEnd(); navCellEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java index ee1ad6a2fae..edff251f30f 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AbstractTreeWriter.java @@ -173,7 +173,7 @@ public abstract class AbstractTreeWriter extends HtmlDocletWriter { */ protected void printPartialInfo(ClassDoc cd) { li("circle"); - printPreQualifiedBoldClassLink(LinkInfoImpl.CONTEXT_TREE, cd); + printPreQualifiedStrongClassLink(LinkInfoImpl.CONTEXT_TREE, cd); } /** @@ -193,7 +193,7 @@ public abstract class AbstractTreeWriter extends HtmlDocletWriter { protected void navLinkTree() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.Tree"); + strongText("doclet.Tree"); fontEnd(); navCellEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java index 6884d5b554d..3058cc293e0 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AllClassesFrameWriter.java @@ -160,7 +160,7 @@ public class AllClassesFrameWriter extends HtmlDocletWriter { */ protected void printAllClassesTableHeader() { fontSizeStyle("+1", "FrameHeadingFont"); - boldText("doclet.All_Classes"); + strongText("doclet.All_Classes"); fontEnd(); br(); table(); diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java index 66a2dfd8f5d..570f27542dd 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeOptionalMemberWriterImpl.java @@ -65,7 +65,7 @@ public class AnnotationTypeOptionalMemberWriterImpl extends public void writeDefaultValueInfo(MemberDoc member) { writer.dl(); writer.dt(); - writer.bold(ConfigurationImpl.getInstance(). + writer.strong(ConfigurationImpl.getInstance(). getText("doclet.Default")); writer.dd(); writer.print(((AnnotationTypeElementDoc) member).defaultValue()); @@ -84,7 +84,7 @@ public class AnnotationTypeOptionalMemberWriterImpl extends * {@inheritDoc} */ public void printSummaryLabel(ClassDoc cd) { - writer.boldText("doclet.Annotation_Type_Optional_Member_Summary"); + writer.strongText("doclet.Annotation_Type_Optional_Member_Summary"); } /** diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java index 380aa775774..801ec8a241d 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeRequiredMemberWriterImpl.java @@ -131,7 +131,7 @@ public class AnnotationTypeRequiredMemberWriterImpl extends AbstractMemberWriter if (configuration().linksource) { writer.printSrcLink(member, member.name()); } else { - bold(member.name()); + strong(member.name()); } writer.preEnd(); writer.dl(); @@ -183,7 +183,7 @@ public class AnnotationTypeRequiredMemberWriterImpl extends AbstractMemberWriter * {@inheritDoc} */ public void printSummaryLabel(ClassDoc cd) { - writer.boldText("doclet.Annotation_Type_Required_Member_Summary"); + writer.strongText("doclet.Annotation_Type_Required_Member_Summary"); } /** @@ -210,9 +210,9 @@ public class AnnotationTypeRequiredMemberWriterImpl extends AbstractMemberWriter * {@inheritDoc} */ protected void writeSummaryLink(int context, ClassDoc cd, ProgramElementDoc member) { - writer.bold(); + writer.strong(); writer.printDocLink(context, (MemberDoc) member, member.name(), false); - writer.boldEnd(); + writer.strongEnd(); } /** diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java index a19b35770f9..fc2527db89b 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java @@ -84,7 +84,7 @@ public class AnnotationTypeWriterImpl extends SubWriterHolderWriter protected void navLinkClass() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.Class"); + strongText("doclet.Class"); fontEnd(); navCellEnd(); } @@ -176,7 +176,7 @@ public class AnnotationTypeWriterImpl extends SubWriterHolderWriter if (configuration().linksource) { printSrcLink(annotationType, name); } else { - bold(name); + strong(name); } dlEnd(); preEnd(); @@ -220,7 +220,7 @@ public class AnnotationTypeWriterImpl extends SubWriterHolderWriter hr(); Tag[] deprs = annotationType.tags("deprecated"); if (Util.isDeprecated(annotationType)) { - boldText("doclet.Deprecated"); + strongText("doclet.Deprecated"); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); if (commentTags.length > 0) { @@ -330,9 +330,9 @@ public class AnnotationTypeWriterImpl extends SubWriterHolderWriter dl(); dt(); if (annotationType.isInterface()) { - boldText("doclet.Enclosing_Interface"); + strongText("doclet.Enclosing_Interface"); } else { - boldText("doclet.Enclosing_Class"); + strongText("doclet.Enclosing_Class"); } dd(); printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS, outerClass, diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java index 90ad0657c04..e122252961d 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassUseWriter.java @@ -394,7 +394,7 @@ public class ClassUseWriter extends SubWriterHolderWriter { hr(); center(); h2(); - boldText("doclet.ClassUse_Title", cltype, clname); + strongText("doclet.ClassUse_Title", cltype, clname); h2End(); centerEnd(); } @@ -436,7 +436,7 @@ public class ClassUseWriter extends SubWriterHolderWriter { protected void navLinkClassUse() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.navClassUse"); + strongText("doclet.navClassUse"); fontEnd(); navCellEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java index 3d6cc2df7a5..ac485e2888b 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java @@ -91,7 +91,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter protected void navLinkClass() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.Class"); + strongText("doclet.Class"); fontEnd(); navCellEnd(); } @@ -185,7 +185,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter if (configuration().linksource) { printSrcLink(classDoc, name); } else { - bold(name); + strong(name); } if (!isInterface) { Type superclass = Util.getFirstVisibleSuperClass(classDoc, @@ -258,7 +258,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter hr(); Tag[] deprs = classDoc.tags("deprecated"); if (Util.isDeprecated(classDoc)) { - boldText("doclet.Deprecated"); + strongText("doclet.Deprecated"); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); if (commentTags.length > 0) { @@ -307,9 +307,9 @@ public class ClassWriterImpl extends SubWriterHolderWriter classDoc, false)); if (configuration.shouldExcludeQualifier( classDoc.containingPackage().name())) { - bold(type.asClassDoc().name() + typeParameters); + strong(type.asClassDoc().name() + typeParameters); } else { - bold(type.asClassDoc().qualifiedName() + typeParameters); + strong(type.asClassDoc().qualifiedName() + typeParameters); } } else { print(getLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS_TREE_PARENT, @@ -359,7 +359,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter if (subclasses.size() > 0) { dl(); dt(); - boldText("doclet.Subclasses"); + strongText("doclet.Subclasses"); writeClassLinks(LinkInfoImpl.CONTEXT_SUBCLASSES, subclasses); } @@ -375,7 +375,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter if (subInterfaces.size() > 0) { dl(); dt(); - boldText("doclet.Subinterfaces"); + strongText("doclet.Subinterfaces"); writeClassLinks(LinkInfoImpl.CONTEXT_SUBINTERFACES, subInterfaces); } @@ -397,7 +397,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter if (implcl.size() > 0) { dl(); dt(); - boldText("doclet.Implementing_Classes"); + strongText("doclet.Implementing_Classes"); writeClassLinks(LinkInfoImpl.CONTEXT_IMPLEMENTED_CLASSES, implcl); } @@ -413,7 +413,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter if (classDoc.isClass() && interfaceArray.size() > 0) { dl(); dt(); - boldText("doclet.All_Implemented_Interfaces"); + strongText("doclet.All_Implemented_Interfaces"); writeClassLinks(LinkInfoImpl.CONTEXT_IMPLEMENTED_INTERFACES, interfaceArray); } @@ -429,7 +429,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter if (classDoc.isInterface() && interfaceArray.size() > 0) { dl(); dt(); - boldText("doclet.All_Superinterfaces"); + strongText("doclet.All_Superinterfaces"); writeClassLinks(LinkInfoImpl.CONTEXT_SUPER_INTERFACES, interfaceArray); } @@ -570,9 +570,9 @@ public class ClassWriterImpl extends SubWriterHolderWriter dl(); dt(); if (outerClass.isInterface()) { - boldText("doclet.Enclosing_Interface"); + strongText("doclet.Enclosing_Interface"); } else { - boldText("doclet.Enclosing_Class"); + strongText("doclet.Enclosing_Class"); } dd(); printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_CLASS, outerClass, diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java index 9469213c7d1..670e8d5e80a 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java @@ -92,7 +92,7 @@ public class ConstantsSummaryWriterImpl extends HtmlDocletWriter * {@inheritDoc} */ public void writeContentsHeader() { - bold(configuration.getText("doclet.Contents")); + strong(configuration.getText("doclet.Contents")); ul(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java index 0651b255446..c0dfe14262c 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConstructorWriterImpl.java @@ -144,7 +144,7 @@ public class ConstructorWriterImpl extends AbstractExecutableMemberWriter if (configuration().linksource) { writer.printSrcLink(constructor, constructor.name()); } else { - bold(constructor.name()); + strong(constructor.name()); } writeParameters(constructor); writeExceptions(constructor); @@ -220,7 +220,7 @@ public class ConstructorWriterImpl extends AbstractExecutableMemberWriter } public void printSummaryLabel(ClassDoc cd) { - writer.boldText("doclet.Constructor_Summary"); + writer.strongText("doclet.Constructor_Summary"); } public void printSummaryAnchor(ClassDoc cd) { diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java index 2d7ccc88137..68b04a7d72a 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/DeprecatedListWriter.java @@ -111,7 +111,7 @@ public class DeprecatedListWriter extends SubWriterHolderWriter { throws IOException { writeHeader(); - bold(configuration.getText("doclet.Contents")); + strong(configuration.getText("doclet.Contents")); ul(); for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) { writeIndexLink(deprapi, i); @@ -156,7 +156,7 @@ public class DeprecatedListWriter extends SubWriterHolderWriter { hr(); center(); h2(); - boldText("doclet.Deprecated_API"); + strongText("doclet.Deprecated_API"); h2End(); centerEnd(); @@ -180,7 +180,7 @@ public class DeprecatedListWriter extends SubWriterHolderWriter { protected void navLinkDeprecated() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.navDeprecated"); + strongText("doclet.navDeprecated"); fontEnd(); navCellEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java index 1ce211c03b1..226d9086eeb 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/EnumConstantWriterImpl.java @@ -143,7 +143,7 @@ public class EnumConstantWriterImpl extends AbstractMemberWriter if (configuration().linksource) { writer.printSrcLink(enumConstant, enumConstant.name()); } else { - bold(enumConstant.name()); + strong(enumConstant.name()); } writer.preEnd(); writer.dl(); @@ -201,7 +201,7 @@ public class EnumConstantWriterImpl extends AbstractMemberWriter } public void printSummaryLabel(ClassDoc cd) { - writer.boldText("doclet.Enum_Constant_Summary"); + writer.strongText("doclet.Enum_Constant_Summary"); } public void printSummaryAnchor(ClassDoc cd) { @@ -216,9 +216,9 @@ public class EnumConstantWriterImpl extends AbstractMemberWriter } protected void writeSummaryLink(int context, ClassDoc cd, ProgramElementDoc member) { - writer.bold(); + writer.strong(); writer.printDocLink(context, (MemberDoc) member, member.name(), false); - writer.boldEnd(); + writer.strongEnd(); } protected void writeInheritedSummaryLink(ClassDoc cd, diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java index a4d1f8428c6..cf37e9ad958 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/FieldWriterImpl.java @@ -153,7 +153,7 @@ public class FieldWriterImpl extends AbstractMemberWriter if (configuration().linksource) { writer.printSrcLink(field, field.name()); } else { - bold(field.name()); + strong(field.name()); } writer.preEnd(); writer.dl(); @@ -190,7 +190,7 @@ public class FieldWriterImpl extends AbstractMemberWriter holder.typeName() : holder.qualifiedTypeName(), false)); writer.dd(); - writer.bold(configuration().getText(holder.isClass()? + writer.strong(configuration().getText(holder.isClass()? "doclet.Description_From_Class" : "doclet.Description_From_Interface", classlink)); writer.ddEnd(); @@ -237,7 +237,7 @@ public class FieldWriterImpl extends AbstractMemberWriter } public void printSummaryLabel(ClassDoc cd) { - writer.boldText("doclet.Field_Summary"); + writer.strongText("doclet.Field_Summary"); } public void printSummaryAnchor(ClassDoc cd) { @@ -251,18 +251,18 @@ public class FieldWriterImpl extends AbstractMemberWriter public void printInheritedSummaryLabel(ClassDoc cd) { String classlink = writer.getPreQualifiedClassLink( LinkInfoImpl.CONTEXT_MEMBER, cd, false); - writer.bold(); + writer.strong(); String key = cd.isClass()? "doclet.Fields_Inherited_From_Class" : "doclet.Fields_Inherited_From_Interface"; writer.printText(key, classlink); - writer.boldEnd(); + writer.strongEnd(); } protected void writeSummaryLink(int context, ClassDoc cd, ProgramElementDoc member) { - writer.bold(); + writer.strong(); writer.printDocLink(context, cd , (MemberDoc) member, member.name(), false); - writer.boldEnd(); + writer.strongEnd(); } protected void writeInheritedSummaryLink(ClassDoc cd, diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java index 121fa935a46..ed12f760a31 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java @@ -223,7 +223,7 @@ public class HelpWriter extends HtmlDocletWriter { protected void navLinkHelp() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.Help"); + strongText("doclet.Help"); fontEnd(); navCellEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java index 695421e04ea..740fab54330 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java @@ -183,21 +183,21 @@ public class HtmlDocletWriter extends HtmlDocWriter { * @param where Position in the file * @param target Name of the target frame. * @param label Tag for the link. - * @param bold Whether the label should be bold or not? + * @param strong Whether the label should be strong or not? */ public void printNoFramesTargetHyperLink(String link, String where, String target, String label, - boolean bold) { + boolean strong) { script(); println(" "); scriptEnd(); noScript(); - println(" " + getHyperLink(link, where, label, bold, "", "", target)); + println(" " + getHyperLink(link, where, label, strong, "", "", target)); noScriptEnd(); println(DocletConstants.NL); } @@ -958,10 +958,10 @@ public class HtmlDocletWriter extends HtmlDocWriter { * * @param pkg the package to link to. * @param label the label for the link. - * @param isBold true if the label should be bold. + * @param isStrong true if the label should be strong. */ - public void printPackageLink(PackageDoc pkg, String label, boolean isBold) { - print(getPackageLink(pkg, label, isBold)); + public void printPackageLink(PackageDoc pkg, String label, boolean isStrong) { + print(getPackageLink(pkg, label, isStrong)); } /** @@ -969,12 +969,12 @@ public class HtmlDocletWriter extends HtmlDocWriter { * * @param pkg the package to link to. * @param label the label for the link. - * @param isBold true if the label should be bold. + * @param isStrong true if the label should be strong. * @param style the font of the package link label. */ - public void printPackageLink(PackageDoc pkg, String label, boolean isBold, + public void printPackageLink(PackageDoc pkg, String label, boolean isStrong, String style) { - print(getPackageLink(pkg, label, isBold, style)); + print(getPackageLink(pkg, label, isStrong, style)); } /** @@ -982,12 +982,12 @@ public class HtmlDocletWriter extends HtmlDocWriter { * * @param pkg the package to link to. * @param label the label for the link. - * @param isBold true if the label should be bold. + * @param isStrong true if the label should be strong. * @return the link to the given package. */ public String getPackageLink(PackageDoc pkg, String label, - boolean isBold) { - return getPackageLink(pkg, label, isBold, ""); + boolean isStrong) { + return getPackageLink(pkg, label, isStrong, ""); } /** @@ -995,11 +995,11 @@ public class HtmlDocletWriter extends HtmlDocWriter { * * @param pkg the package to link to. * @param label the label for the link. - * @param isBold true if the label should be bold. + * @param isStrong true if the label should be strong. * @param style the font of the package link label. * @return the link to the given package. */ - public String getPackageLink(PackageDoc pkg, String label, boolean isBold, + public String getPackageLink(PackageDoc pkg, String label, boolean isStrong, String style) { boolean included = pkg != null && pkg.isIncluded(); if (! included) { @@ -1013,11 +1013,11 @@ public class HtmlDocletWriter extends HtmlDocWriter { } if (included || pkg == null) { return getHyperLink(pathString(pkg, "package-summary.html"), - "", label, isBold, style); + "", label, isStrong, style); } else { String crossPkgLink = getCrossPackageLink(Util.getPackageName(pkg)); if (crossPkgLink != null) { - return getHyperLink(crossPkgLink, "", label, isBold, style); + return getHyperLink(crossPkgLink, "", label, isStrong, style); } else { return label; } @@ -1087,12 +1087,12 @@ public class HtmlDocletWriter extends HtmlDocWriter { * @param refMemName the name of the member being referenced. This should * be null or empty string if no member is being referenced. * @param label the label for the external link. - * @param bold true if the link should be bold. + * @param strong true if the link should be strong. * @param style the style of the link. * @param code true if the label should be code font. */ public String getCrossClassLink(String qualifiedClassName, String refMemName, - String label, boolean bold, String style, + String label, boolean strong, String style, boolean code) { String className = "", packageName = qualifiedClassName == null ? "" : qualifiedClassName; @@ -1113,7 +1113,7 @@ public class HtmlDocletWriter extends HtmlDocWriter { className + ".html?is-external=true"), refMemName == null ? "" : refMemName, label == null || label.length() == 0 ? defaultLabel : label, - bold, style, + strong, style, configuration.getText("doclet.Href_Class_Or_Interface_Title", packageName), ""); } @@ -1152,26 +1152,26 @@ public class HtmlDocletWriter extends HtmlDocWriter { * link label. * * @param cd the class to link to. - * @param isBold true if the link should be bold. + * @param isStrong true if the link should be strong. * @return the link with the package portion of the label in plain text. */ public String getPreQualifiedClassLink(int context, - ClassDoc cd, boolean isBold) { + ClassDoc cd, boolean isStrong) { String classlink = ""; PackageDoc pd = cd.containingPackage(); if(pd != null && ! configuration.shouldExcludeQualifier(pd.name())) { classlink = getPkgName(cd); } - classlink += getLink(new LinkInfoImpl(context, cd, cd.name(), isBold)); + classlink += getLink(new LinkInfoImpl(context, cd, cd.name(), isStrong)); return classlink; } /** - * Print Class link, with only class name as the bold link and prefixing + * Print Class link, with only class name as the strong link and prefixing * plain package name. */ - public void printPreQualifiedBoldClassLink(int context, ClassDoc cd) { + public void printPreQualifiedStrongClassLink(int context, ClassDoc cd) { print(getPreQualifiedClassLink(context, cd, true)); } @@ -1187,16 +1187,16 @@ public class HtmlDocletWriter extends HtmlDocWriter { print(configuration.getText(key, a1, a2)); } - public void boldText(String key) { - bold(configuration.getText(key)); + public void strongText(String key) { + strong(configuration.getText(key)); } - public void boldText(String key, String a1) { - bold(configuration.getText(key, a1)); + public void strongText(String key, String a1) { + strong(configuration.getText(key, a1)); } - public void boldText(String key, String a1, String a2) { - bold(configuration.getText(key, a1, a2)); + public void strongText(String key, String a1, String a2) { + strong(configuration.getText(key, a1, a2)); } /** @@ -1205,11 +1205,11 @@ public class HtmlDocletWriter extends HtmlDocWriter { * @param context the id of the context where the link will be printed. * @param doc the member being linked to. * @param label the label for the link. - * @param bold true if the link should be bold. + * @param strong true if the link should be strong. */ public void printDocLink(int context, MemberDoc doc, String label, - boolean bold) { - print(getDocLink(context, doc, label, bold)); + boolean strong) { + print(getDocLink(context, doc, label, strong)); } /** @@ -1221,11 +1221,11 @@ public class HtmlDocletWriter extends HtmlDocWriter { * inheriting comments. * @param doc the member being linked to. * @param label the label for the link. - * @param bold true if the link should be bold. + * @param strong true if the link should be strong. */ public void printDocLink(int context, ClassDoc classDoc, MemberDoc doc, - String label, boolean bold) { - print(getDocLink(context, classDoc, doc, label, bold)); + String label, boolean strong) { + print(getDocLink(context, classDoc, doc, label, strong)); } /** @@ -1234,12 +1234,12 @@ public class HtmlDocletWriter extends HtmlDocWriter { * @param context the id of the context where the link will be printed. * @param doc the member being linked to. * @param label the label for the link. - * @param bold true if the link should be bold. + * @param strong true if the link should be strong. * @return the link for the given member. */ public String getDocLink(int context, MemberDoc doc, String label, - boolean bold) { - return getDocLink(context, doc.containingClass(), doc, label, bold); + boolean strong) { + return getDocLink(context, doc.containingClass(), doc, label, strong); } /** @@ -1251,21 +1251,21 @@ public class HtmlDocletWriter extends HtmlDocWriter { * inheriting comments. * @param doc the member being linked to. * @param label the label for the link. - * @param bold true if the link should be bold. + * @param strong true if the link should be strong. * @return the link for the given member. */ public String getDocLink(int context, ClassDoc classDoc, MemberDoc doc, - String label, boolean bold) { + String label, boolean strong) { if (! (doc.isIncluded() || Util.isLinkable(classDoc, configuration()))) { return label; } else if (doc instanceof ExecutableMemberDoc) { ExecutableMemberDoc emd = (ExecutableMemberDoc)doc; return getLink(new LinkInfoImpl(context, classDoc, - getAnchor(emd), label, bold)); + getAnchor(emd), label, strong)); } else if (doc instanceof MemberDoc) { return getLink(new LinkInfoImpl(context, classDoc, - doc.name(), label, bold)); + doc.name(), label, strong)); } else { return label; } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java index ed90d540433..ff648659ba5 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/HtmlSerialFieldWriter.java @@ -100,7 +100,7 @@ public class HtmlSerialFieldWriter extends FieldWriterImpl fieldType)); } print(fieldDimensions + ' '); - bold(fieldName); + strong(fieldName); writer.preEnd(); writer.dl(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java index 4a2abf11077..b459bff49b9 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java @@ -81,7 +81,7 @@ public class LinkFactoryImpl extends LinkFactory { !(linkInfo.classDoc.name() + ".html").equals(m_writer.filename)) { linkOutput.append(m_writer.getHyperLink(filename, classLinkInfo.where, label.toString(), - classLinkInfo.isBold, classLinkInfo.styleName, + classLinkInfo.isStrong, classLinkInfo.styleName, title, classLinkInfo.target)); if (noLabel && !classLinkInfo.excludeTypeParameterLinks) { linkOutput.append(getTypeParameterLinks(linkInfo).toString()); @@ -92,7 +92,7 @@ public class LinkFactoryImpl extends LinkFactory { } else { String crossLink = m_writer.getCrossClassLink( classDoc.qualifiedName(), classLinkInfo.where, - label.toString(), classLinkInfo.isBold, classLinkInfo.styleName, + label.toString(), classLinkInfo.isStrong, classLinkInfo.styleName, true); if (crossLink != null) { linkOutput.append(crossLink); diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java index 9bf955db4af..363e0f4c6fa 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/LinkInfoImpl.java @@ -235,15 +235,15 @@ public class LinkInfoImpl extends LinkInfo { * @param classDoc the class to link to. * @param where the value of the marker #. * @param label the label for the link. - * @param isBold true if the link should be bold. + * @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 isBold, String styleName){ + boolean isStrong, String styleName){ this.classDoc = classDoc; this.where = where; this.label = label; - this.isBold = isBold; + this.isStrong = isStrong; this.styleName = styleName; setContext(context); } @@ -255,14 +255,14 @@ public class LinkInfoImpl extends LinkInfo { * @param classDoc the class to link to. * @param where the value of the marker #. * @param label the label for the link. - * @param isBold true if the link should be bold. + * @param isStrong true if the link should be strong. */ public LinkInfoImpl (int context, ClassDoc classDoc, String where, String label, - boolean isBold){ + boolean isStrong){ this.classDoc = classDoc; this.where = where; this.label = label; - this.isBold = isBold; + this.isStrong = isStrong; setContext(context); } @@ -283,12 +283,12 @@ public class LinkInfoImpl extends LinkInfo { * * @param context the context of the link. * @param executableMemberDoc the member to link to. - * @param isBold true if the link should be bold. + * @param isStrong true if the link should be strong. */ public LinkInfoImpl (int context, ExecutableMemberDoc executableMemberDoc, - boolean isBold){ + boolean isStrong){ this.executableMemberDoc = executableMemberDoc; - this.isBold = isBold; + this.isStrong = isStrong; setContext(context); } @@ -297,11 +297,11 @@ public class LinkInfoImpl extends LinkInfo { * * @param context the context of the link. * @param classDoc the class to link to. - * @param isBold true if the link should be bold. + * @param isStrong true if the link should be strong. */ - public LinkInfoImpl (int context, ClassDoc classDoc, boolean isBold){ + public LinkInfoImpl (int context, ClassDoc classDoc, boolean isStrong){ this.classDoc = classDoc; - this.isBold = isBold; + this.isStrong = isStrong; setContext(context); } @@ -335,13 +335,13 @@ public class LinkInfoImpl extends LinkInfo { * @param context the context of the link. * @param type the class to link to. * @param label the label for the link. - * @param isBold true if the link should be bold. + * @param isStrong true if the link should be strong. */ public LinkInfoImpl (int context, Type type, String label, - boolean isBold){ + boolean isStrong){ this.type = type; this.label = label; - this.isBold = isBold; + this.isStrong = isStrong; setContext(context); } @@ -351,13 +351,13 @@ public class LinkInfoImpl extends LinkInfo { * @param context the context of the link. * @param classDoc the class to link to. * @param label the label for the link. - * @param isBold true if the link should be bold. + * @param isStrong true if the link should be strong. */ public LinkInfoImpl (int context, ClassDoc classDoc, String label, - boolean isBold){ + boolean isStrong){ this.classDoc = classDoc; this.label = label; - this.isBold = isBold; + this.isStrong = isStrong; setContext(context); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java index 16976c43eb2..7a4da14b0d6 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java @@ -167,7 +167,7 @@ public class MethodWriterImpl extends AbstractExecutableMemberWriter if (configuration().linksource) { writer.printSrcLink(method, method.name()); } else { - bold(method.name()); + strong(method.name()); } writeParameters(method); writeExceptions(method); @@ -210,7 +210,7 @@ public class MethodWriterImpl extends AbstractExecutableMemberWriter holder.typeName() : holder.qualifiedTypeName(), false)); writer.dd(); - writer.boldText(holder.asClassDoc().isClass()? + writer.strongText(holder.asClassDoc().isClass()? "doclet.Description_From_Class": "doclet.Description_From_Interface", classlink); @@ -259,7 +259,7 @@ public class MethodWriterImpl extends AbstractExecutableMemberWriter } public void printSummaryLabel(ClassDoc cd) { - writer.boldText("doclet.Method_Summary"); + writer.strongText("doclet.Method_Summary"); } public void printSummaryAnchor(ClassDoc cd) { @@ -274,12 +274,12 @@ public class MethodWriterImpl extends AbstractExecutableMemberWriter public void printInheritedSummaryLabel(ClassDoc cd) { String classlink = writer.getPreQualifiedClassLink( LinkInfoImpl.CONTEXT_MEMBER, cd, false); - writer.bold(); + writer.strong(); String key = cd.isClass()? "doclet.Methods_Inherited_From_Class" : "doclet.Methods_Inherited_From_Interface"; writer.printText(key, classlink); - writer.boldEnd(); + writer.strongEnd(); } protected void printSummaryType(ProgramElementDoc member) { @@ -317,7 +317,7 @@ public class MethodWriterImpl extends AbstractExecutableMemberWriter writer.getLink(new LinkInfoImpl(context, overriddenType))); String name = method.name(); writer.dt(); - writer.boldText(label); + writer.strongText(label); writer.dd(); String methLink = writer.codeText( writer.getLink( @@ -363,7 +363,7 @@ public class MethodWriterImpl extends AbstractExecutableMemberWriter writer.getLink(new LinkInfoImpl( LinkInfoImpl.CONTEXT_METHOD_SPECIFIED_BY, intfac))); writer.dt(); - writer.boldText("doclet.Specified_By"); + writer.strongText("doclet.Specified_By"); writer.dd(); methlink = writer.codeText(writer.getDocLink( LinkInfoImpl.CONTEXT_MEMBER, implementedMeth, diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java index db1e21f40fe..2b3d2ea3709 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/NestedClassWriterImpl.java @@ -149,7 +149,7 @@ public class NestedClassWriterImpl extends AbstractMemberWriter } public void printSummaryLabel(ClassDoc cd) { - writer.boldText("doclet.Nested_Class_Summary"); + writer.strongText("doclet.Nested_Class_Summary"); } public void printSummaryAnchor(ClassDoc cd) { @@ -164,18 +164,18 @@ public class NestedClassWriterImpl extends AbstractMemberWriter public void printInheritedSummaryLabel(ClassDoc cd) { String clslink = writer.getPreQualifiedClassLink( LinkInfoImpl.CONTEXT_MEMBER, cd, false); - writer.bold(); + writer.strong(); writer.printText(cd.isInterface() ? "doclet.Nested_Classes_Interface_Inherited_From_Interface" : "doclet.Nested_Classes_Interfaces_Inherited_From_Class", clslink); - writer.boldEnd(); + writer.strongEnd(); } protected void writeSummaryLink(int context, ClassDoc cd, ProgramElementDoc member) { - writer.bold(); + writer.strong(); writer.printLink(new LinkInfoImpl(context, (ClassDoc)member, false)); - writer.boldEnd(); + writer.strongEnd(); } protected void writeInheritedSummaryLink(ClassDoc cd, diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java index 20e412eb68a..ebc7118ab5d 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexFrameWriter.java @@ -87,7 +87,7 @@ public class PackageIndexFrameWriter extends AbstractPackageIndexWriter { } /** - * Print the "-packagesheader" string in bold format, at top of the page, + * Print the "-packagesheader" string in strong format, at top of the page, * if it is not the empty string. Otherwise print the "-header" string. * Despite the name, there is actually no navigation bar for this page. */ @@ -95,9 +95,9 @@ public class PackageIndexFrameWriter extends AbstractPackageIndexWriter { printTableHeader(true); fontSizeStyle("+1", "FrameTitleFont"); if (configuration.packagesheader.length() > 0) { - bold(replaceDocRootDir(configuration.packagesheader)); + strong(replaceDocRootDir(configuration.packagesheader)); } else { - bold(replaceDocRootDir(configuration.header)); + strong(replaceDocRootDir(configuration.header)); } fontEnd(); printTableFooter(true); diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java index 5eac4cdc714..9cc222cea9d 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java @@ -102,9 +102,9 @@ public class PackageIndexWriter extends AbstractPackageIndexWriter { if(pkg != null && pkg.name().length() > 0) { trBgcolorStyle("white", "TableRowColor"); summaryRow(20); - bold(); + strong(); printPackageLink(pkg, Util.getPackageName(pkg), false); - boldEnd(); + strongEnd(); summaryRowEnd(); summaryRow(0); printSummaryComment(pkg); @@ -137,7 +137,7 @@ public class PackageIndexWriter extends AbstractPackageIndexWriter { if (root.inlineTags().length > 0) { printSummaryComment(root); p(); - bold(configuration.getText("doclet.See")); + strong(configuration.getText("doclet.See")); br(); printNbsps(); printHyperLink("", "overview_description", @@ -152,7 +152,7 @@ public class PackageIndexWriter extends AbstractPackageIndexWriter { protected void printIndexHeader(String text) { tableIndexSummary(); tableHeaderStart("#CCCCFF"); - bold(text); + strong(text); tableHeaderEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java index 6633af796a0..638c6d4d75f 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageTreeWriter.java @@ -144,7 +144,7 @@ public class PackageTreeWriter extends AbstractTreeWriter { protected void printLinkToMainTree() { dl(); dt(); - boldText("doclet.Package_Hierarchies"); + strongText("doclet.Package_Hierarchies"); dd(); navLinkMainTree(configuration.getText("doclet.All_Packages")); dlEnd(); diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java index 83eec5e7e74..03ee446d95e 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageUseWriter.java @@ -178,9 +178,9 @@ public class PackageUseWriter extends SubWriterHolderWriter { trBgcolorStyle("white", "TableRowColor"); summaryRow(0); - bold(); + strong(); printHyperLink(path, packageName, usedClass.name(), true); - boldEnd(); + strongEnd(); println(); br(); printNbsps(); printIndexComment(usedClass); @@ -219,7 +219,7 @@ public class PackageUseWriter extends SubWriterHolderWriter { hr(); center(); h2(); - boldText("doclet.ClassUse_Title", packageLabel, name); + strongText("doclet.ClassUse_Title", packageLabel, name); h2End(); centerEnd(); } @@ -251,7 +251,7 @@ public class PackageUseWriter extends SubWriterHolderWriter { protected void navLinkClassUse() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.navClassUse"); + strongText("doclet.navClassUse"); fontEnd(); navCellEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java index f7911c01c9c..eca6d49bbbf 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java @@ -123,14 +123,14 @@ public class PackageWriterImpl extends HtmlDocletWriter } trBgcolorStyle("white", "TableRowColor"); summaryRow(15); - bold(); + strong(); printLink(new LinkInfoImpl(LinkInfoImpl.CONTEXT_PACKAGE, classes[i], false)); - boldEnd(); + strongEnd(); summaryRowEnd(); summaryRow(0); if (Util.isDeprecated(classes[i])) { - boldText("doclet.Deprecated"); + strongText("doclet.Deprecated"); if (classes[i].tags("deprecated").length > 0) { space(); printSummaryDeprecatedComment(classes[i], @@ -155,7 +155,7 @@ public class PackageWriterImpl extends HtmlDocletWriter */ protected void printFirstRow(String label) { tableHeaderStart("#CCCCFF"); - bold(label); + strong(label); tableHeaderEnd(); } @@ -194,7 +194,7 @@ public class PackageWriterImpl extends HtmlDocletWriter if (packageDoc.inlineTags().length > 0 && ! configuration.nocomment) { printSummaryComment(packageDoc); p(); - bold(configuration.getText("doclet.See")); + strong(configuration.getText("doclet.See")); br(); printNbsps(); printHyperLink("", "package_description", @@ -268,7 +268,7 @@ public class PackageWriterImpl extends HtmlDocletWriter protected void navLinkPackage() { navCellRevStart(); fontStyle("NavBarFont1Rev"); - boldText("doclet.Package"); + strongText("doclet.Package"); fontEnd(); navCellEnd(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java index 7dc668a077d..afcce254a1d 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java @@ -73,9 +73,9 @@ public class SerializedFormWriterImpl extends SubWriterHolderWriter tableHeader(); thAlign("center"); font("+2"); - boldText("doclet.Package"); + strongText("doclet.Package"); print(' '); - bold(packageName); + strong(packageName); tableFooter(); } @@ -86,7 +86,7 @@ public class SerializedFormWriterImpl extends SubWriterHolderWriter * @param serialUID the serial UID to print. */ public void writeSerialUIDInfo(String header, String serialUID) { - bold(header + " "); + strong(header + " "); println(serialUID); p(); } @@ -131,7 +131,7 @@ public class SerializedFormWriterImpl extends SubWriterHolderWriter tableHeader(); thAlignColspan("left", 2); font("+2"); - bold(className); + strong(className); tableFooter(); p(); } diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java index e82966cf848..f6b6b98b6e5 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/SubWriterHolderWriter.java @@ -81,7 +81,7 @@ public abstract class SubWriterHolderWriter extends HtmlDocletWriter { public void printTableHeadingBackground(String str) { tableIndexDetail(); tableHeaderStart("#CCCCFF", 1); - bold(str); + strong(str); tableHeaderEnd(); tableEnd(); } @@ -117,7 +117,7 @@ public abstract class SubWriterHolderWriter extends HtmlDocletWriter { protected void printIndexComment(Doc member, Tag[] firstSentenceTags) { Tag[] deprs = member.tags("deprecated"); if (Util.isDeprecated((ProgramElementDoc) member)) { - boldText("doclet.Deprecated"); + strongText("doclet.Deprecated"); space(); if (deprs.length > 0) { printInlineDeprecatedComment(member, deprs[0]); @@ -126,7 +126,7 @@ public abstract class SubWriterHolderWriter extends HtmlDocletWriter { } else { ClassDoc cd = ((ProgramElementDoc)member).containingClass(); if (cd != null && Util.isDeprecated(cd)) { - boldText("doclet.Deprecated"); space(); + strongText("doclet.Deprecated"); space(); } } printSummaryComment(member, firstSentenceTags); diff --git a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java index 6a82d06f0f0..353937f630a 100644 --- a/langtools/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java +++ b/langtools/src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java @@ -69,9 +69,9 @@ public class TagletWriterImpl extends TagletWriter { Tag[] deprs = doc.tags("deprecated"); if (doc instanceof ClassDoc) { if (Util.isDeprecated((ProgramElementDoc) doc)) { - output.append("" + + output.append("" + ConfigurationImpl.getInstance(). - getText("doclet.Deprecated") + " "); + getText("doclet.Deprecated") + " "); if (deprs.length > 0) { Tag[] commentTags = deprs[0].inlineTags(); if (commentTags.length > 0) { @@ -86,9 +86,9 @@ public class TagletWriterImpl extends TagletWriter { } else { MemberDoc member = (MemberDoc) doc; if (Util.isDeprecated((ProgramElementDoc) doc)) { - output.append("
Link to external member gcd
"},
{BUG_ID + FS + "C.html",
- "Overrides:toString
in class java.lang.Object
"}
+ "Overrides:toString
in class java.lang.Object
"}
};
private static final String[][] NEGATED_TEST = NO_TEST;
private static final String[] ARGS =
diff --git a/langtools/test/com/sun/javadoc/testClassTree/TestClassTree.java b/langtools/test/com/sun/javadoc/testClassTree/TestClassTree.java
index f9c5a9fa6b5..543d2f096c7 100644
--- a/langtools/test/com/sun/javadoc/testClassTree/TestClassTree.java
+++ b/langtools/test/com/sun/javadoc/testClassTree/TestClassTree.java
@@ -49,12 +49,12 @@ public class TestClassTree extends JavadocTester {
private static final String[][] TEST = {
{BUG_ID + FS + "pkg" + FS + "package-tree.html",
""+NL+"
i
- a param."+NL+"
i
- a param." + NL + "
@Deprecated" + NL + - "public class DeprecatedClassByAnnotation"}, + "public class DeprecatedClassByAnnotation"}, - {TARGET_FILE2, "public int field" + NL + + {TARGET_FILE2, "public int field" + NL + "
Overrides:read
in class " +
"FilterReader"},
{BUG_ID + FS + "pkg" + FS + "XReader.html",
- "Specified by:Specified by:readInt
in interface " +
"" + NL +
- "Class Summary"
+ "Class Summary"
},
// Class documentation
{BUG_ID + FS + "pkg1" + FS + "C1.html",
"" + NL +
- "Field Summary "
+ "Field Summary"
},
{BUG_ID + FS + "pkg1" + FS + "C1.html",
- "Methods inherited from class " + "java.lang.Object "
+ "Methods inherited from class " + "java.lang.Object "
},
// Class use documentation
@@ -76,7 +76,7 @@ public class TestHeadings extends JavadocTester {
// Deprecated
{BUG_ID + FS + "deprecated-list.html",
"" + NL +
- "Deprecated Methods "
+ "Deprecated Methods"
},
// Constant values
@@ -90,20 +90,20 @@ public class TestHeadings extends JavadocTester {
// Serialized Form
{BUG_ID + FS + "serialized-form.html",
"" + NL +
- "Package pkg1 "
+ "Package pkg1"
},
{BUG_ID + FS + "serialized-form.html",
"" + NL +
- "Class pkg1.C1 extends java.lang.Object " + "implements Serializable "
+ "Class pkg1.C1 extends java.lang.Object " + "implements Serializable"
},
{BUG_ID + FS + "serialized-form.html",
"" + NL +
- "Serialized Fields "
+ "Serialized Fields"
},
// Overview Frame
{BUG_ID + FS + "overview-frame.html",
- "" + NL + "Test Files "
+ "" + NL + "Test Files "
},
{BUG_ID + FS + "overview-frame.html",
"" + NL +
diff --git a/langtools/test/com/sun/javadoc/testHelpOption/TestHelpOption.java b/langtools/test/com/sun/javadoc/testHelpOption/TestHelpOption.java
index 18dab3d0ffc..e9e3e6b9d63 100644
--- a/langtools/test/com/sun/javadoc/testHelpOption/TestHelpOption.java
+++ b/langtools/test/com/sun/javadoc/testHelpOption/TestHelpOption.java
@@ -91,7 +91,8 @@ public class TestHelpOption extends JavadocTester {
private static final String[][] TEST2 = {
{BUG_ID + FS + "TestHelpOption.html",
- "" +
"Help"
+ "" +
+ "Help"
},
};
private static final String[][] NEGATED_TEST2 = NO_TEST;
diff --git a/langtools/test/com/sun/javadoc/testHref/TestHref.java b/langtools/test/com/sun/javadoc/testHref/TestHref.java
index 0b901830ab3..609c66d89bd 100644
--- a/langtools/test/com/sun/javadoc/testHref/TestHref.java
+++ b/langtools/test/com/sun/javadoc/testHref/TestHref.java
@@ -67,7 +67,7 @@ public class TestHref extends JavadocTester {
},
//@see test.
{BUG_ID + FS + "pkg" + FS + "C2.html",
- "See Also:- "
+ "See Also:
- "
},
//Header does not link to the page itself.
@@ -77,7 +77,7 @@ public class TestHref extends JavadocTester {
//Signature does not link to the page itself.
{BUG_ID + FS + "pkg" + FS + "C4.html",
- "public abstract class C4<E extends C4<E>>"
+ "public abstract class C4<E extends C4<E>>"
},
};
private static final String[][] NEGATED_TEST =
diff --git a/langtools/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java b/langtools/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java
new file mode 100644
index 00000000000..3bb26e83992
--- /dev/null
+++ b/langtools/test/com/sun/javadoc/testHtmlStrongTag/TestHtmlStrongTag.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+/*
+ * @test
+ * @bug 6786028
+ * @summary This test verifys the use of HTML tag instead of by Javadoc std doclet.
+ * @author Bhavesh Patel
+ * @library ../lib/
+ * @build JavadocTester
+ * @build TestHtmlStrongTag
+ * @run main TestHtmlStrongTag
+ */
+
+public class TestHtmlStrongTag extends JavadocTester {
+
+ private static final String BUG_ID = "6786028";
+ private static final String[][] TEST1 = {
+ {BUG_ID + FS + "pkg1" + FS + "C1.html", "Method Summary"},
+ {BUG_ID + FS + "pkg1" + FS + "C1.html", "See Also:"},
+ {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "Class Summary"}};
+ private static final String[][] NEGATED_TEST1 = {
+ {BUG_ID + FS + "pkg1" + FS + "C1.html", ""}};
+ private static final String[][] TEST2 = {
+ {BUG_ID + FS + "pkg2" + FS + "C2.html", "Method Summary"},
+ {BUG_ID + FS + "pkg2" + FS + "C2.html", "Comments:"},
+ {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "Class Summary"}};
+
+ private static final String[] ARGS1 =
+ new String[] {
+ "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
+ private static final String[] ARGS2 =
+ new String[] {
+ "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg2"};
+
+ /**
+ * The entry point of the test.
+ * @param args the array of command line arguments.
+ */
+ public static void main(String[] args) {
+ TestHtmlStrongTag tester = new TestHtmlStrongTag();
+ run(tester, ARGS1, TEST1, NEGATED_TEST1);
+ run(tester, ARGS2, TEST2, NO_TEST);
+ tester.printSummary();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getBugId() {
+ return BUG_ID;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public String getBugName() {
+ return getClass().getName();
+ }
+}
diff --git a/langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg1/C1.java b/langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg1/C1.java
new file mode 100644
index 00000000000..411f42b7709
--- /dev/null
+++ b/langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg1/C1.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package pkg1;
+
+/**
+ * @see java.lang.Object#wait(long, int)
+ */
+public class C1 {
+
+ public void method(int param1, int param2) {
+
+ }
+}
diff --git a/langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg2/C2.java b/langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg2/C2.java
new file mode 100644
index 00000000000..ffdda94b073
--- /dev/null
+++ b/langtools/test/com/sun/javadoc/testHtmlStrongTag/pkg2/C2.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright 1999-2008 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package pkg2;
+
+/**
+ * Comments: Class 2
+ */
+public class C2 {}
diff --git a/langtools/test/com/sun/javadoc/testIndex/TestIndex.java b/langtools/test/com/sun/javadoc/testIndex/TestIndex.java
index 9bf93d64bf0..0594d3d9371 100644
--- a/langtools/test/com/sun/javadoc/testIndex/TestIndex.java
+++ b/langtools/test/com/sun/javadoc/testIndex/TestIndex.java
@@ -54,27 +54,27 @@ public class TestIndex extends JavadocTester {
//Test index-all.html
{BUG_ID + FS + "index-all.html",
- "C" +
+ "C" +
" - Class in pkg"},
{BUG_ID + FS + "index-all.html",
"" +
- "Interface - Interface in " +
+ "Interface - Interface in " +
"pkg"},
{BUG_ID + FS + "index-all.html",
"" +
- "AnnotationType - Annotation Type in " +
+ "AnnotationType
- Annotation Type in " +
"pkg"},
{BUG_ID + FS + "index-all.html",
"" +
- "Coin - Enum in " +
+ "Coin
- Enum in " +
"pkg"},
{BUG_ID + FS + "index-all.html",
"Class in <Unnamed>"},
{BUG_ID + FS + "index-all.html",
- "- Java - " + NL +
+ "
- Java - " + NL +
"Static variable in class pkg.C" + NL +
"
- " + NL +
- "
- JDK - " + NL +
+ "
- JDK - " + NL +
"Static variable in class pkg.C" + NL +
"
- "},
};
diff --git a/langtools/test/com/sun/javadoc/testInterface/TestInterface.java b/langtools/test/com/sun/javadoc/testInterface/TestInterface.java
index 3a3ae3ea62d..0dd3ebb9003 100644
--- a/langtools/test/com/sun/javadoc/testInterface/TestInterface.java
+++ b/langtools/test/com/sun/javadoc/testInterface/TestInterface.java
@@ -48,14 +48,14 @@ public class TestInterface extends JavadocTester {
//Input for string search tests.
private static final String[][] TEST = {
{BUG_ID + FS + "pkg" + FS + "Interface.html",
- "int method()"},
+ "int method()"},
{BUG_ID + FS + "pkg" + FS + "Interface.html",
- "static final int field"},
+ "static final int field"},
// Make sure known implementing class list is correct and omits type parameters.
{BUG_ID + FS + "pkg" + FS + "Interface.html",
- "
- All Known Implementing Classes: " +
+ "
- All Known Implementing Classes: " +
"
- Child, " +
"" +
@@ -63,34 +63,34 @@ public class TestInterface extends JavadocTester {
// Make sure "All Implemented Interfaces": has substituted type parameters
{BUG_ID + FS + "pkg" + FS + "Child.html",
- "All Implemented Interfaces:
- Interface<T>"
+ "All Implemented Interfaces:
- Interface<T>"
},
//Make sure Class Tree has substituted type parameters.
{BUG_ID + FS + "pkg" + FS + "Child.html",
"
" + NL +
"java.lang.Object" + NL +
" pkg.Parent<T>" + NL +
- " pkg.Child<T>" + NL +
+ " pkg.Child<T>" + NL +
"
"
},
//Make sure "Direct Know Subclasses" omits type parameters
{BUG_ID + FS + "pkg" + FS + "Parent.html",
- "Direct Known Subclasses: - Child"
+ "Direct Known Subclasses:
- Child"
},
//Make sure "Specified By" has substituted type parameters.
{BUG_ID + FS + "pkg" + FS + "Child.html",
- "Specified by:
method
in interface Interface<T>
"
+ "Specified by:method
in interface Interface<T>
"
},
//Make sure "Overrides" has substituted type parameters.
{BUG_ID + FS + "pkg" + FS + "Child.html",
- "Overrides:method
in class Parent<T>
"
+ "Overrides:method
in class Parent<T>
"
},
};
private static final String[][] NEGATED_TEST = {
{BUG_ID + FS + "pkg" + FS + "Interface.html",
- "public int method()"},
+ "public int method()"},
{BUG_ID + FS + "pkg" + FS + "Interface.html",
- "public static final int field"},
+ "public static final int field"},
};
/**
diff --git a/langtools/test/com/sun/javadoc/testJavascript/TestJavascript.java b/langtools/test/com/sun/javadoc/testJavascript/TestJavascript.java
index a8377478f81..22955cc0d89 100644
--- a/langtools/test/com/sun/javadoc/testJavascript/TestJavascript.java
+++ b/langtools/test/com/sun/javadoc/testJavascript/TestJavascript.java
@@ -45,9 +45,9 @@ public class TestJavascript extends JavadocTester {
//Input for string search tests.
private static final String[][] TEST = {
{BUG_ID + FS + "pkg" + FS + "C.html",
- "FRAMES"},
+ "FRAMES"},
{BUG_ID + FS + "TestJavascript.html",
- "FRAMES"},
+ "FRAMES"},
{BUG_ID + FS + "index.html",
"