--- old/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HelpWriter.java 2017-11-06 17:20:07.476949115 -0800 +++ new/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HelpWriter.java 2017-11-06 17:20:07.172935864 -0800 @@ -29,6 +29,7 @@ import jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyle; import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTag; import jdk.javadoc.internal.doclets.formats.html.markup.HtmlTree; +import jdk.javadoc.internal.doclets.formats.html.markup.Links; import jdk.javadoc.internal.doclets.formats.html.markup.StringContent; import jdk.javadoc.internal.doclets.toolkit.Content; import jdk.javadoc.internal.doclets.toolkit.util.DocFileIOException; @@ -132,7 +133,7 @@ ? HtmlTree.SECTION(overviewHeading) : HtmlTree.LI(HtmlStyle.blockList, overviewHeading); Content line3 = contents.getContent("doclet.Help_line_3", - getHyperLink(DocPaths.overviewSummary(configuration.frames), + Links.createLink(DocPaths.overviewSummary(configuration.frames), configuration.getText("doclet.Overview"))); Content overviewPara = HtmlTree.P(line3); htmlTree.addContent(overviewPara); @@ -282,7 +283,7 @@ ? HtmlTree.SECTION(treeHead) : HtmlTree.LI(HtmlStyle.blockList, treeHead); Content line17 = contents.getContent("doclet.Help_line_17_with_tree_link", - getHyperLink(DocPaths.OVERVIEW_TREE, + Links.createLink(DocPaths.OVERVIEW_TREE, configuration.getText("doclet.Class_Hierarchy")), HtmlTree.CODE(new StringContent("java.lang.Object"))); Content treePara = HtmlTree.P(line17); @@ -307,7 +308,7 @@ ? HtmlTree.SECTION(dHead) : HtmlTree.LI(HtmlStyle.blockList, dHead); Content line20 = contents.getContent("doclet.Help_line_20_with_deprecated_api_link", - getHyperLink(DocPaths.DEPRECATED_LIST, + Links.createLink(DocPaths.DEPRECATED_LIST, configuration.getText("doclet.Deprecated_API"))); Content dPara = HtmlTree.P(line20); htmlTree.addContent(dPara); @@ -320,10 +321,10 @@ if (configuration.createindex) { Content indexlink; if (configuration.splitindex) { - indexlink = getHyperLink(DocPaths.INDEX_FILES.resolve(DocPaths.indexN(1)), + indexlink = Links.createLink(DocPaths.INDEX_FILES.resolve(DocPaths.indexN(1)), configuration.getText("doclet.Index")); } else { - indexlink = getHyperLink(DocPaths.INDEX_ALL, + indexlink = Links.createLink(DocPaths.INDEX_ALL, configuration.getText("doclet.Index")); } Content indexHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, @@ -377,7 +378,7 @@ ? HtmlTree.SECTION(allclassesHead) : HtmlTree.LI(HtmlStyle.blockList, allclassesHead); Content line27 = contents.getContent("doclet.Help_line_27", - getHyperLink(DocPaths.AllClasses(configuration.frames), + Links.createLink(DocPaths.AllClasses(configuration.frames), resources.getText("doclet.All_Classes"))); Content allclassesPara = HtmlTree.P(line27); htmlTree.addContent(allclassesPara); @@ -405,7 +406,7 @@ ? HtmlTree.SECTION(constHead) : HtmlTree.LI(HtmlStyle.blockList, constHead); Content line29 = contents.getContent("doclet.Help_line_29", - getHyperLink(DocPaths.CONSTANT_VALUES, + Links.createLink(DocPaths.CONSTANT_VALUES, resources.getText("doclet.Constants_Summary"))); Content constPara = HtmlTree.P(line29); htmlTree.addContent(constPara);