diff --git a/make/jdk/src/classes/build/tools/taglet/ModuleGraph.java b/make/jdk/src/classes/build/tools/taglet/ModuleGraph.java index 5f28cb41ba4..bf9894f4d1c 100644 --- a/make/jdk/src/classes/build/tools/taglet/ModuleGraph.java +++ b/make/jdk/src/classes/build/tools/taglet/ModuleGraph.java @@ -75,7 +75,7 @@ public class ModuleGraph implements Taglet { } return "
Module Graph:
" + "
" - + "" + + "" + getImage(moduleName, imageFile, thumbnailHeight, false) + hoverImage + "" diff --git a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/SourceToHTMLConverter.java b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/SourceToHTMLConverter.java index 80b1762d49e..9abfd4b2a48 100644 --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/SourceToHTMLConverter.java +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/SourceToHTMLConverter.java @@ -287,7 +287,7 @@ public class SourceToHTMLConverter { * @return the header content for the HTML file */ private static Content getHeader() { - return new HtmlTree(HtmlTag.BODY).put(HtmlAttr.CLASS, "source"); + return new HtmlTree(HtmlTag.BODY).setStyle(HtmlStyle.source); } /** diff --git a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java index a5302352606..663518b9aa5 100644 --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlStyle.java @@ -25,8 +25,11 @@ package jdk.javadoc.internal.doclets.formats.html.markup; +import java.util.Locale; +import java.util.regex.Pattern; + /** - * Enum representing HTML styles. The name map to values in the CSS file. + * Enum representing HTML styles, with associated entries in the stylesheet files. * *

This is NOT part of any supported API. * If you write code that depends on this, you do so at your own risk. @@ -118,6 +121,7 @@ public enum HtmlStyle { serializedClassDetails, servicesSummary, skipNav, + source, sourceContainer, sourceLineNo, subNav, @@ -136,5 +140,25 @@ public enum HtmlStyle { typeSummary, useSummary, usesSummary, - verticalSeparator + verticalSeparator; + + private final String cssName; + + HtmlStyle() { + cssName = Pattern.compile("\\p{Upper}") + .matcher(toString()) + .replaceAll(mr -> "-" + mr.group().toLowerCase(Locale.US)); + } + + HtmlStyle(String cssName) { + this.cssName = cssName; + } + + /** + * Returns the CSS class name associated with this style. + * @return the CSS class name + */ + public String cssName() { + return cssName; + } } diff --git a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java index c26723877ec..22c25c53b23 100644 --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java @@ -147,7 +147,7 @@ public class HtmlTree extends Content { * @return this object */ public HtmlTree setStyle(HtmlStyle style) { - return put(HtmlAttr.CLASS, style.toString()); + return put(HtmlAttr.CLASS, style.cssName()); } /** diff --git a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Table.java b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Table.java index 03c3866b262..50446a5be0d 100644 --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Table.java +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Table.java @@ -357,7 +357,7 @@ public class Table extends Content { if (stripedStyles != null) { int rowIndex = bodyRows.size(); - row.put(HtmlAttr.CLASS, stripedStyles.get(rowIndex % 2).name()); + row.setStyle(stripedStyles.get(rowIndex % 2)); } int colIndex = 0; for (Content c : contents) { @@ -444,7 +444,7 @@ public class Table extends Content { } } HtmlTree tabpanel = new HtmlTree(HtmlTag.DIV) - .put(HtmlAttr.ID, tableStyle + "_tabpanel") + .put(HtmlAttr.ID, tableStyle.cssName() + "_tabpanel") .put(HtmlAttr.ROLE, "tabpanel"); table.add(getTableBody()); tabpanel.add(table); @@ -458,7 +458,7 @@ public class Table extends Content { HtmlTree tab = new HtmlTree(HtmlTag.BUTTON) .put(HtmlAttr.ROLE, "tab") .put(HtmlAttr.ARIA_SELECTED, defaultTab ? "true" : "false") - .put(HtmlAttr.ARIA_CONTROLS, tableStyle + "_tabpanel") + .put(HtmlAttr.ARIA_CONTROLS, tableStyle.cssName() + "_tabpanel") .put(HtmlAttr.TABINDEX, defaultTab ? "0" : "-1") .put(HtmlAttr.ONKEYDOWN, "switchTab(event)") .put(HtmlAttr.ID, tabId) @@ -543,7 +543,7 @@ public class Table extends Content { private void appendStyleInfo(StringBuilder sb, HtmlStyle... styles) { for (HtmlStyle style : styles) { - sb.append("var ").append(style).append(" = \"").append(style).append("\";\n"); + sb.append("var ").append(style.name()).append(" = \"").append(style.cssName()).append("\";\n"); } } diff --git a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css index df122cfc54b..40e06ad206b 100644 --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css @@ -104,14 +104,14 @@ button { height:0px; overflow:hidden; } -.aboutLanguage { +.about-language { float:right; padding:0px 21px; font-size:11px; z-index:200; margin-top:-9px; } -.legalCopy { +.legal-copy { margin-left:.5em; } .tab { @@ -125,22 +125,22 @@ button { * Styles for navigation bar. */ @media screen { - .flexBox { + .flex-box { position:fixed; display:flex; flex-direction:column; height: 100%; width: 100%; } - .flexHeader { + .flex-header { flex: 0 0 auto; } - .flexContent { + .flex-content { flex: 1 1 auto; overflow-y: auto; } } -.topNav { +.top-nav { background-color:#4D7A97; color:#FFFFFF; float:left; @@ -152,7 +152,7 @@ button { overflow:hidden; font-size:12px; } -.bottomNav { +.bottom-nav { margin-top:10px; background-color:#4D7A97; color:#FFFFFF; @@ -165,64 +165,64 @@ button { overflow:hidden; font-size:12px; } -.subNav { +.sub-nav { background-color:#dee3e9; float:left; width:100%; overflow:hidden; font-size:12px; } -.subNav div { +.sub-nav div { clear:left; float:left; padding:0 0 5px 6px; text-transform:uppercase; } -.subNav .navList { +.sub-nav .nav-list { padding-top:5px; } -ul.navList, ul.subNavList { +ul.nav-list, ul.sub-nav-list { float:left; margin:0 25px 0 0; padding:0; } -ul.navList li{ +ul.nav-list li{ list-style:none; float:left; padding: 5px 6px; text-transform:uppercase; } -.subNav .navListSearch { +.sub-nav .nav-list-search { float:right; margin:0 0 0 0; padding:5px 6px; clear:none; } -.navListSearch label { +.nav-list-search label { position:relative; right:-16px; } -ul.subNavList li { +ul.sub-nav-list li { list-style:none; float:left; padding-top:10px; } -.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { +.top-nav a:link, .top-nav a:active, .top-nav a:visited, .bottom-nav a:link, .bottom-nav a:active, .bottom-nav a:visited { color:#FFFFFF; text-decoration:none; text-transform:uppercase; } -.topNav a:hover, .bottomNav a:hover { +.top-nav a:hover, .bottom-nav a:hover { text-decoration:none; color:#bb7a2a; text-transform:uppercase; } -.navBarCell1Rev { +.nav-bar-cell1-rev { background-color:#F8981D; color:#253441; margin: auto 5px; } -.skipNav { +.skip-nav { position:absolute; top:auto; left:-9999px; @@ -232,7 +232,7 @@ ul.subNavList li { * Hide navigation links and search box in print layout */ @media print { - ul.navList, div.subNav { + ul.nav-list, div.sub-nav { display:none; } } @@ -243,7 +243,7 @@ ul.subNavList li { color:#2c4557; margin:10px 0; } -.subTitle { +.sub-title { margin:5px 0 0 0; } .header ul { @@ -260,14 +260,14 @@ ul.subNavList li { body.class-declaration .summary h2, body.class-declaration .details h2, body.class-use h2, -body.module-declaration .blockList h2 { +body.module-declaration .block-list h2 { font-style: italic; padding:0; margin:15px 0; } body.class-declaration .summary h3, body.class-declaration .details h3, -body.class-declaration .summary .inheritedList h2 { +body.class-declaration .summary .inherited-list h2 { background-color:#dee3e9; border:1px solid #d0d9e0; margin:0 0 6px -8px; @@ -293,13 +293,13 @@ dl.notes > dd { font-size:14px; font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; } -dl.nameValue > dt { +dl.name-value > dt { margin-left:1px; font-size:1.1em; display:inline; font-weight:bold; } -dl.nameValue > dd { +dl.name-value > dd { margin:0 0 0 1px; font-size:1.1em; display:inline; @@ -321,11 +321,11 @@ div.inheritance { div.inheritance div.inheritance { margin-left:2em; } -ul.blockList { +ul.block-list { margin:10px 0 10px 0; padding:0; } -ul.blockList li.blockList { +ul.block-list li.block-list { list-style:none; margin-bottom:15px; line-height:1.4; @@ -337,22 +337,22 @@ table tr td dl, table tr td dl dt, table tr td dl dd { /* * Styles for tables. */ -.overviewSummary table, .memberSummary table, .typeSummary table, .useSummary table, .constantsSummary table, .deprecatedSummary table, -.requiresSummary table, .packagesSummary table, .providesSummary table, .usesSummary table, .systemPropertiesSummary table { +.overview-summary table, .member-summary table, .type-summary table, .use-summary table, .constants-summary table, .deprecated-summary table, +.requires-summary table, .packages-summary table, .provides-summary table, .uses-summary table, .system-properties-summary table { width:100%; border-spacing:0; border-left:1px solid #EEE; border-right:1px solid #EEE; border-bottom:1px solid #EEE; } -.overviewSummary table, .memberSummary table, .requiresSummary table, .packagesSummary table, -.providesSummary table, .usesSummary table, .systemPropertiesSummary table { +.overview-summary table, .member-summary table, .requires-summary table, .packages-summary table, +.provides-summary table, .uses-summary table, .system-properties-summary table { padding:0px; } -.overviewSummary caption, .memberSummary caption, .typeSummary caption, -.useSummary caption, .constantsSummary caption, .deprecatedSummary caption, -.requiresSummary caption, .packagesSummary caption, .providesSummary caption, -.usesSummary caption, .systemPropertiesSummary caption { +.overview-summary caption, .member-summary caption, .type-summary caption, +.use-summary caption, .constants-summary caption, .deprecated-summary caption, +.requires-summary caption, .packages-summary caption, .provides-summary caption, +.uses-summary caption, .system-properties-summary caption { position:relative; text-align:left; background-repeat:no-repeat; @@ -366,32 +366,32 @@ table tr td dl, table tr td dl dt, table tr td dl dd { margin:0px; white-space:pre; } -.constantsSummary caption a:link, .constantsSummary caption a:visited, -.useSummary caption a:link, .useSummary caption a:visited { +.constants-summary caption a:link, .constants-summary caption a:visited, +.use-summary caption a:link, .use-summary caption a:visited { color:#1f389c; } -.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, -.deprecatedSummary caption a:link, -.requiresSummary caption a:link, .packagesSummary caption a:link, .providesSummary caption a:link, -.usesSummary caption a:link, -.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, -.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, -.requiresSummary caption a:hover, .packagesSummary caption a:hover, .providesSummary caption a:hover, -.usesSummary caption a:hover, -.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, -.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, -.requiresSummary caption a:active, .packagesSummary caption a:active, .providesSummary caption a:active, -.usesSummary caption a:active, -.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, -.deprecatedSummary caption a:visited, -.requiresSummary caption a:visited, .packagesSummary caption a:visited, .providesSummary caption a:visited, -.usesSummary caption a:visited { +.overview-summary caption a:link, .member-summary caption a:link, .type-summary caption a:link, +.deprecated-summary caption a:link, +.requires-summary caption a:link, .packages-summary caption a:link, .provides-summary caption a:link, +.uses-summary caption a:link, +.overview-summary caption a:hover, .member-summary caption a:hover, .type-summary caption a:hover, +.use-summary caption a:hover, .constants-summary caption a:hover, .deprecated-summary caption a:hover, +.requires-summary caption a:hover, .packages-summary caption a:hover, .provides-summary caption a:hover, +.uses-summary caption a:hover, +.overview-summary caption a:active, .member-summary caption a:active, .type-summary caption a:active, +.use-summary caption a:active, .constants-summary caption a:active, .deprecated-summary caption a:active, +.requires-summary caption a:active, .packages-summary caption a:active, .provides-summary caption a:active, +.uses-summary caption a:active, +.overview-summary caption a:visited, .member-summary caption a:visited, .type-summary caption a:visited, +.deprecated-summary caption a:visited, +.requires-summary caption a:visited, .packages-summary caption a:visited, .provides-summary caption a:visited, +.uses-summary caption a:visited { color:#FFFFFF; } -.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, -.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span, -.requiresSummary caption span, .packagesSummary caption span, .providesSummary caption span, -.usesSummary caption span, .systemPropertiesSummary caption span { +.overview-summary caption span, .member-summary caption span, .type-summary caption span, +.use-summary caption span, .constants-summary caption span, .deprecated-summary caption span, +.requires-summary caption span, .packages-summary caption span, .provides-summary caption span, +.uses-summary caption span, .system-properties-summary caption span { white-space:nowrap; padding-top:5px; padding-left:12px; @@ -403,102 +403,102 @@ table tr td dl, table tr td dl dt, table tr td dl dd { border: none; height:16px; } -.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, -.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd, -.requiresSummary .tabEnd, .packagesSummary .tabEnd, .providesSummary .tabEnd, .usesSummary .tabEnd { +.overview-summary .tab-end, .member-summary .tab-end, .type-summary .tab-end, +.use-summary .tab-end, .constants-summary .tab-end, .deprecated-summary .tab-end, +.requires-summary .tab-end, .packages-summary .tab-end, .provides-summary .tab-end, .uses-summary .tab-end { display:none; width:5px; position:relative; float:left; background-color:#F8981D; } -.overviewSummary [role=tablist] button, .memberSummary [role=tablist] button, -.typeSummary [role=tablist] button, .packagesSummary [role=tablist] button { +.overview-summary [role=tablist] button, .member-summary [role=tablist] button, +.type-summary [role=tablist] button, .packages-summary [role=tablist] button { border: none; cursor: pointer; padding: 5px 12px 7px 12px; font-weight: bold; margin-right: 3px; } -.overviewSummary [role=tablist] .activeTableTab, .memberSummary [role=tablist] .activeTableTab, -.typeSummary [role=tablist] .activeTableTab, .packagesSummary [role=tablist] .activeTableTab { +.overview-summary [role=tablist] .active-table-tab, .member-summary [role=tablist] .active-table-tab, +.type-summary [role=tablist] .active-table-tab, .packages-summary [role=tablist] .active-table-tab { background: #F8981D; color: #253441; } -.overviewSummary [role=tablist] .tableTab, .memberSummary [role=tablist] .tableTab, -.typeSummary [role=tablist] .tableTab, .packagesSummary [role=tablist] .tableTab { +.overview-summary [role=tablist] .table-tab, .member-summary [role=tablist] .table-tab, +.type-summary [role=tablist] .table-tab, .packages-summary [role=tablist] .table-tab { background: #4D7A97; color: #FFFFFF; } -.rowColor th, .altColor th { +.row-color th, .alt-color th { font-weight:normal; } -.overviewSummary td, .memberSummary td, .typeSummary td, -.useSummary td, .constantsSummary td, .deprecatedSummary td, -.requiresSummary td, .packagesSummary td, .providesSummary td, -.usesSummary td, .systemPropertiesSummary td { +.overview-summary td, .member-summary td, .type-summary td, +.use-summary td, .constants-summary td, .deprecated-summary td, +.requires-summary td, .packages-summary td, .provides-summary td, +.uses-summary td, .system-properties-summary td { text-align:left; padding:0px 0px 12px 10px; } -th.colFirst, th.colSecond, th.colLast, th.colConstructorName, th.colDeprecatedItemName, .useSummary th, -.constantsSummary th, .packagesSummary th, td.colFirst, td.colSecond, td.colLast, .useSummary td, -.constantsSummary td, .systemPropertiesSummary th { +th.col-first, th.col-second, th.col-last, th.col-constructor-name, th.col-deprecated-item-name, .use-summary th, +.constants-summary th, .packages-summary th, td.col-first, td.col-second, td.col-last, .use-summary td, +.constants-summary td, .system-properties-summary th { vertical-align:top; padding-right:0px; padding-top:8px; padding-bottom:3px; } -th.colFirst, th.colSecond, th.colLast, th.colConstructorName, th.colDeprecatedItemName, .constantsSummary th, -.packagesSummary th { +th.col-first, th.col-second, th.col-last, th.col-constructor-name, th.col-deprecated-item-name, .constants-summary th, +.packages-summary th { background:#dee3e9; text-align:left; padding:8px 3px 3px 7px; } -td.colFirst, th.colFirst { +td.col-first, th.col-first { font-size:13px; } -td.colSecond, th.colSecond, td.colLast, th.colConstructorName, th.colDeprecatedItemName, th.colLast { +td.col-second, th.col-second, td.col-last, th.col-constructor-name, th.col-deprecated-item-name, th.col-last { font-size:13px; } -.constantsSummary th, .packagesSummary th { +.constants-summary th, .packages-summary th { font-size:13px; } -.providesSummary th.colFirst, .providesSummary th.colLast, .providesSummary td.colFirst, -.providesSummary td.colLast { +.provides-summary th.col-first, .provides-summary th.col-last, .provides-summary td.col-first, +.provides-summary td.col-last { white-space:normal; font-size:13px; } -.overviewSummary td.colFirst, .overviewSummary th.colFirst, -.requiresSummary td.colFirst, .requiresSummary th.colFirst, -.packagesSummary td.colFirst, .packagesSummary td.colSecond, .packagesSummary th.colFirst, .packagesSummary th, -.usesSummary td.colFirst, .usesSummary th.colFirst, -.providesSummary td.colFirst, .providesSummary th.colFirst, -.memberSummary td.colFirst, .memberSummary th.colFirst, -.memberSummary td.colSecond, .memberSummary th.colSecond, .memberSummary th.colConstructorName, -.typeSummary td.colFirst, .typeSummary th.colFirst { +.overview-summary td.col-first, .overview-summary th.col-first, +.requires-summary td.col-first, .requires-summary th.col-first, +.packages-summary td.col-first, .packages-summary td.col-second, .packages-summary th.col-first, .packages-summary th, +.uses-summary td.col-first, .uses-summary th.col-first, +.provides-summary td.col-first, .provides-summary th.col-first, +.member-summary td.col-first, .member-summary th.col-first, +.member-summary td.col-second, .member-summary th.col-second, .member-summary th.col-constructor-name, +.type-summary td.col-first, .type-summary th.col-first { vertical-align:top; } -.packagesSummary th.colLast, .packagesSummary td.colLast { +.packages-summary th.col-last, .packages-summary td.col-last { white-space:normal; } -td.colFirst a:link, td.colFirst a:visited, -td.colSecond a:link, td.colSecond a:visited, -th.colFirst a:link, th.colFirst a:visited, -th.colSecond a:link, th.colSecond a:visited, -th.colConstructorName a:link, th.colConstructorName a:visited, -th.colDeprecatedItemName a:link, th.colDeprecatedItemName a:visited, -.constantValuesContainer td a:link, .constantValuesContainer td a:visited, -.allClassesContainer td a:link, .allClassesContainer td a:visited, -.allPackagesContainer td a:link, .allPackagesContainer td a:visited { +td.col-first a:link, td.col-first a:visited, +td.col-second a:link, td.col-second a:visited, +th.col-first a:link, th.col-first a:visited, +th.col-second a:link, th.col-second a:visited, +th.col-constructor-name a:link, th.col-constructor-name a:visited, +th.col-deprecated-item-name a:link, th.col-deprecated-item-name a:visited, +.constant-values-container td a:link, .constant-values-container td a:visited, +.all-classes-container td a:link, .all-classes-container td a:visited, +.all-packages-container td a:link, .all-packages-container td a:visited { font-weight:bold; } -.tableSubHeadingColor { +.table-sub-heading-color { background-color:#EEEEFF; } -.altColor, .altColor th { +.alt-color, .alt-color th { background-color:#FFFFFF; } -.rowColor, .rowColor th { +.row-color, .row-color th { background-color:#EEEEEF; } /* @@ -507,7 +507,7 @@ th.colDeprecatedItemName a:link, th.colDeprecatedItemName a:visited, .description pre { margin-top:0; } -.deprecatedContent { +.deprecated-content { margin:0; padding:10px 0; } @@ -515,35 +515,35 @@ div.block { font-size:14px; font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; } -td.colLast div { +td.col-last div { padding-top:0px; } -td.colLast a { +td.col-last a { padding-bottom:3px; } -div.memberSignature { +div.member-signature { font-family:'DejaVu Sans Mono', monospace; font-size:14px; margin:14px 0; white-space: pre-wrap; } -div.memberSignature span.annotations { +div.member-signature span.annotations { white-space: pre-wrap; } -div.memberSignature span.typeParametersLong, -div.memberSignature span.arguments, -div.memberSignature span.exceptions { +div.member-signature span.type-parameters-long, +div.member-signature span.arguments, +div.member-signature span.exceptions { display: inline-block; vertical-align: top; white-space: pre; } -div.memberSignature span.typeParameters { +div.member-signature span.type-parameters { white-space: normal; } /* * Styles for formatting effect. */ -.sourceLineNo { +.source-line-no { color:green; padding:0 30px 0 0; } @@ -557,15 +557,15 @@ h1.hidden { margin:0 10px 5px 0; color:#474747; } -.deprecatedLabel, .descfrmTypeLabel, .implementationLabel, .memberNameLabel, .memberNameLink, -.moduleLabelInPackage, .moduleLabelInType, .overrideSpecifyLabel, .packageLabelInType, -.packageHierarchyLabel, .typeNameLabel, .typeNameLink, .searchTagLink { +.deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, +.module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, +.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link { font-weight:bold; } -.deprecationComment, .emphasizedPhrase, .interfaceName { +.deprecation-comment, .emphasized-phrase, .interface-name { font-style:italic; } -.deprecationBlock { +.deprecation-block { font-size:14px; font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; border-style:solid; @@ -576,8 +576,8 @@ h1.hidden { margin-right:10px; display:inline-block; } -div.block div.deprecationComment, div.block div.block span.emphasizedPhrase, -div.block div.block span.interfaceName { +div.block div.deprecation-comment, div.block div.block span.emphasized-phrase, +div.block div.block span.interface-name { font-style:normal; } /* @@ -596,7 +596,7 @@ main, nav, header, footer, section { background-color:#4D7A97; color:#FFFFFF; } -.resultItem { +.result-item { font-size:13px; } .ui-autocomplete { @@ -616,7 +616,7 @@ ul.ui-autocomplete li { clear:both; width:100%; } -.resultHighlight { +.result-highlight { font-weight:bold; } #search { @@ -646,44 +646,44 @@ ul.ui-autocomplete li { .watermark { color:#545454; } -.searchTagDescResult { +.search-tag-desc-result { font-style:italic; font-size:11px; } -.searchTagHolderResult { +.search-tag-holder-result { font-style:italic; font-size:12px; } -.searchTagResult:target { +.search-tag-result:target { background-color:yellow; } -.moduleGraph span { +.module-graph span { display:none; position:absolute; } -.moduleGraph:hover span { +.module-graph:hover span { display:block; margin: -100px 0 0 100px; z-index: 1; } -.inheritedList { +.inherited-list { margin: 10px 0 10px 0; } section.description { line-height: 1.4; } .summary section[class$="Summary"], .details section[class$="Details"], -.classUses .detail, .serializedClassDetails { +.class-uses .detail, .serialized-class-details { padding: 0px 20px 5px 10px; border: 1px solid #ededed; background-color: #f8f8f8; } -.inheritedList, section[class$="Details"] .detail { +.inherited-list, section[class$="Details"] .detail { padding:0 0 5px 8px; background-color:#ffffff; border:none; } -.verticalSeparator { +.vertical-separator { padding: 0 5px; } /* diff --git a/test/langtools/jdk/javadoc/doclet/AccessSkipNav/AccessSkipNav.java b/test/langtools/jdk/javadoc/doclet/AccessSkipNav/AccessSkipNav.java index 3f0beca3aeb..4d3c7f11545 100644 --- a/test/langtools/jdk/javadoc/doclet/AccessSkipNav/AccessSkipNav.java +++ b/test/langtools/jdk/javadoc/doclet/AccessSkipNav/AccessSkipNav.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2020, Oracle and/or its affiliates. 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 @@ -52,13 +52,13 @@ public class AccessSkipNav extends JavadocTester { // Top navbar "Skip navigation links", // Top navbar - "\n" + "\n" + "\n" + "", // Bottom navbar "Skip navigation links", // Bottom navbar - "\n" + "\n" + "\n" + ""); } diff --git a/test/langtools/jdk/javadoc/doclet/constantValues/TestConstantValuesDriver.java b/test/langtools/jdk/javadoc/doclet/constantValues/TestConstantValuesDriver.java index 13e611158e2..8d9f06fe652 100644 --- a/test/langtools/jdk/javadoc/doclet/constantValues/TestConstantValuesDriver.java +++ b/test/langtools/jdk/javadoc/doclet/constantValues/TestConstantValuesDriver.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2020, Oracle and/or its affiliates. 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 @@ -54,30 +54,30 @@ public class TestConstantValuesDriver extends JavadocTester { "TEST4PASSES", "\"<Hello World>\"", "public static final byte\n" + - "" + + "" + "BYTE_MAX_VALUE\n" + - "127", + "127", "public static final byte\n" + - "" + + "" + "BYTE_MIN_VALUE\n" + - "-127", + "-127", "public static final char\n" + - "" + + "" + "CHAR_MAX_VALUE\n" + - "65535", + "65535", "public static final double", - "" + + "" + "DOUBLE_MAX_VALUE\n" + - "1.7976931348623157E308", + "1.7976931348623157E308", "public static final double\n" + - "" + + "" + "DOUBLE_MIN_VALUE", "public static final boolean\n" + - "" + + "" + "GOODBYE", "public static final boolean\n" + - "HELLO\n" + - "true" + "HELLO\n" + + "true" ); } } diff --git a/test/langtools/jdk/javadoc/doclet/testAbstractMethod/TestAbstractMethod.java b/test/langtools/jdk/javadoc/doclet/testAbstractMethod/TestAbstractMethod.java index 4ae6b0eb495..2ce54459369 100644 --- a/test/langtools/jdk/javadoc/doclet/testAbstractMethod/TestAbstractMethod.java +++ b/test/langtools/jdk/javadoc/doclet/testAbstractMethod/TestAbstractMethod.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2020, Oracle and/or its affiliates. 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 @@ -49,62 +49,62 @@ public class TestAbstractMethod extends JavadocTester { checkExit(Exit.OK); checkOutput("pkg/A.html", true, - "default void", + "default void", "

"); checkOutput("pkg/B.html", true, "
", - "abstract void"); + "abstract void"); checkOutput("pkg/C.html", true, "
"); checkOutput("pkg/A.html", false, - "abstract void"); + "abstract void"); checkOutput("pkg/B.html", false, - "", - "default void"); + "default void"); checkOutput("pkg/C.html", false, - "" - + " "); + + " "); } } diff --git a/test/langtools/jdk/javadoc/doclet/testAnchorNames/TestAnchorNames.java b/test/langtools/jdk/javadoc/doclet/testAnchorNames/TestAnchorNames.java index dff15cdab6d..4c2c499db15 100644 --- a/test/langtools/jdk/javadoc/doclet/testAnchorNames/TestAnchorNames.java +++ b/test/langtools/jdk/javadoc/doclet/testAnchorNames/TestAnchorNames.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2020, Oracle and/or its affiliates. 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 @@ -61,18 +61,18 @@ public class TestAnchorNames extends JavadocTester { // Test some section markers and links to these markers checkOutput("pkg1/RegClass.html", true, - "", + "", "", - "
\n" + "
\n" + "

Nested Class Summary

", "
", - "
\n" + "
\n" + "

Method Summary

", "
", - "
\n" + "
\n" + "

Field Details

", "
", - "
\n" + "
\n" + "

Constructor Details

", "
"); @@ -155,7 +155,7 @@ public class TestAnchorNames extends JavadocTester { // Test serialized form page checkOutput("serialized-form.html", true, //This is the marker for the link that appears in the pkg1.RegClass.html page - "
"); + "
"); // Test member name index page checkOutput("index-all.html", true, diff --git a/test/langtools/jdk/javadoc/doclet/testAnnotationTypes/TestAnnotationTypes.java b/test/langtools/jdk/javadoc/doclet/testAnnotationTypes/TestAnnotationTypes.java index 1d9d628b823..96f2d82a252 100644 --- a/test/langtools/jdk/javadoc/doclet/testAnnotationTypes/TestAnnotationTypes.java +++ b/test/langtools/jdk/javadoc/doclet/testAnnotationTypes/TestAnnotationTypes.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2020, Oracle and/or its affiliates. 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 @@ -57,14 +57,14 @@ public class TestAnnotationTypes extends JavadocTester { + "field.detail\">Field | ", "", "

Field Summary

", - "DEFAULT_NAME" + "DEFAULT_NAME" + "", "", "
\n" + "

DEFAULT_NAME

\n" - + "
static final " - + "java.lang.String " - + "DEFAULT_NAME
\n"); + + "
static final " + + "java.lang.String " + + "DEFAULT_NAME
\n"); checkOutput("pkg/AnnotationType.html", true, "
  • Summary: 
  • \n" @@ -74,18 +74,18 @@ public class TestAnnotationTypes extends JavadocTester { checkOutput("pkg/AnnotationType.html", true, "", - "
      ", - "
    • ", + "
        ", + "
      • ", "
        ", "

        Element Details

        ", "", "", - "
          ", - "
        • ", + "
            ", + "
          • ", "
            ", "

            value

            \n", - "
            int" - + " value
            "); + "
            int" + + " value
            "); checkOutput("pkg/AnnotationType.html", false, "
            \n\n" diff --git a/test/langtools/jdk/javadoc/doclet/testClassCrossReferences/TestClassCrossReferences.java b/test/langtools/jdk/javadoc/doclet/testClassCrossReferences/TestClassCrossReferences.java index 8860f569457..3d83566d531 100644 --- a/test/langtools/jdk/javadoc/doclet/testClassCrossReferences/TestClassCrossReferences.java +++ b/test/langtools/jdk/javadoc/doclet/testClassCrossReferences/TestClassCrossReferences.java @@ -54,16 +54,16 @@ public class TestClassCrossReferences extends JavadocTester { checkExit(Exit.OK); checkOutput("C.html", true, - "" + "" + "Link to math package", "Link to AttributeContext innerclass", + + "title=\"class or interface in javax.swing.text\" class=\"external-link\">Link to AttributeContext innerclass", "Link to external class BigDecimal", + + "title=\"class or interface in java.math\" class=\"external-link\">Link to external class BigDecimal", "Link to external member gcd", + + "title=\"class or interface in java.math\" class=\"external-link\">Link to external member gcd", "Link to external member URI", + + "title=\"class or interface in javax.tools\" class=\"external-link\">Link to external member URI", "
            \n" + "
            Overrides:
            \n" + "
            toString in class java.lang.Object
            \n" diff --git a/test/langtools/jdk/javadoc/doclet/testClassLinks/TestClassLinks.java b/test/langtools/jdk/javadoc/doclet/testClassLinks/TestClassLinks.java index 998510f855f..b598507db14 100644 --- a/test/langtools/jdk/javadoc/doclet/testClassLinks/TestClassLinks.java +++ b/test/langtools/jdk/javadoc/doclet/testClassLinks/TestClassLinks.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. 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 @@ -53,11 +53,11 @@ public class TestClassLinks extends JavadocTester { checkOutput("p/C1.html", true, "C2", - "C1()"); + "C1()"); checkOutput("p/C2.html", true, "C3", - "C2()"); + "C2()"); checkOutput("p/C3.html", true, "I1, " @@ -65,7 +65,7 @@ public class TestClassLinks extends JavadocTester { + "I2, " + "IT1<T>, " + "IT2<java.lang.String>", - "C3()"); + "C3()"); checkOutput("p/I1.html", true, "C3", diff --git a/test/langtools/jdk/javadoc/doclet/testClassTree/TestClassTree.java b/test/langtools/jdk/javadoc/doclet/testClassTree/TestClassTree.java index 8c019b191b6..248f34fc1f3 100644 --- a/test/langtools/jdk/javadoc/doclet/testClassTree/TestClassTree.java +++ b/test/langtools/jdk/javadoc/doclet/testClassTree/TestClassTree.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2020, Oracle and/or its affiliates. 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 @@ -53,11 +53,11 @@ public class TestClassTree extends JavadocTester { checkOutput("pkg/package-tree.html", true, "
              \n" + "
            • pkg.ParentClass", + + "title=\"class in pkg\">ParentClass", "

              Annotation Type Hierarchy

              \n" + "
                \n" + "
              • pkg.AnnotationType " + + "title=\"annotation in pkg\">AnnotationType " + "(implements java.lang.annotation.Annotation)
              • \n" + "
              ", "

              Enum Hierarchy

              \n" @@ -67,7 +67,7 @@ public class TestClassTree extends JavadocTester { + "
            • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.lang.constant.Constable, java.io.Serializable)\n" + "
                \n" + "
              • pkg.Coin
              • \n" + + "title=\"enum in pkg\">Coin\n" + "
              \n" + "
            • \n" + "
            \n" @@ -76,6 +76,6 @@ public class TestClassTree extends JavadocTester { checkOutput("pkg/package-tree.html", false, "
          • class pkg.ParentClass
          • "); + + "title=\"class in pkg\">ParentClass
          • "); } } diff --git a/test/langtools/jdk/javadoc/doclet/testDeprecatedDocs/TestDeprecatedDocs.java b/test/langtools/jdk/javadoc/doclet/testDeprecatedDocs/TestDeprecatedDocs.java index 16c8df9d55f..7e4cf4c4e6d 100644 --- a/test/langtools/jdk/javadoc/doclet/testDeprecatedDocs/TestDeprecatedDocs.java +++ b/test/langtools/jdk/javadoc/doclet/testDeprecatedDocs/TestDeprecatedDocs.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2020, Oracle and/or its affiliates. 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 @@ -79,125 +79,125 @@ public class TestDeprecatedDocs extends JavadocTester { checkOutput("pkg/DeprecatedClassByAnnotation.html", true, "
            @Deprecated\n"
            -                + "public class DeprecatedClassByAnnotation\n"
            +                + "public class DeprecatedClassByAnnotation\n"
                             + "extends java.lang.Object
            ", - "
            @Deprecated(forRemoval=true)\n" - + "public int" - + " field
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.
            ", - "
            @Deprecated(forRemoval=true)\n" - + "public DeprecatedClassByAnnotation()
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.
            ", - "
            @Deprecated\n" - + "public " - + "void method()
            \n" - + "
            Deprecated.
            "); + "
            @Deprecated(forRemoval=true)\n" + + "public int" + + " field
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.
            ", + "
            @Deprecated(forRemoval=true)\n" + + "public DeprecatedClassByAnnotation()
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.
            ", + "
            @Deprecated\n" + + "public " + + "void method()
            \n" + + "
            Deprecated.
            "); checkOutput("pkg/TestAnnotationType.html", true, "
            \n" + "
            @Deprecated(forRemoval=true)\n"
                             + "@Documented\n"
            -                + "public @interface TestAnnotationType
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            annotation_test1 passes.
            \n" + + "public @interface TestAnnotationType\n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            annotation_test1 passes.
            \n" + "
            ", - "
            @Deprecated(forRemoval=true)\n" + - "static final int field
            \n" - + "
            Deprecated, for removal: This " + "
            @Deprecated(forRemoval=true)\n" + + "static final int field
            \n" + + "
            Deprecated, for removal: This " + "API element is subject to removal in a future version.\n" - + "
            annotation_test4 passes.
            \n" + + "
            annotation_test4 passes.
            \n" + "
            ", - "
            @Deprecated(forRemoval=true)\n" - + "int required
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            annotation_test3 passes.
            \n" + "
            @Deprecated(forRemoval=true)\n" + + "int required
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            annotation_test3 passes.
            \n" + "
            ", - "
            java.lang.String" - + " optional
            \n" - + "
            Deprecated.\n" - + "
            annotation_test2 passes.
            \n" + "
            java.lang.String" + + " optional
            \n" + + "
            Deprecated.\n" + + "
            annotation_test2 passes.
            \n" + "
            "); checkOutput("pkg/TestClass.html", true, "
            \n" + "
            @Deprecated(forRemoval=true)\n"
            -                + "public class TestClass\n"
            +                + "public class TestClass\n"
                             + "extends java.lang.Object
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            class_test1 passes.
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            class_test1 passes.
            \n" + "
            ", - "
            @Deprecated(forRemoval=true)\n" - + "public TestClass()
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            class_test3 passes. This is the second sentence of deprecated description for a constructor.
            \n" + "
            @Deprecated(forRemoval=true)\n" + + "public TestClass()
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            class_test3 passes. This is the second sentence of deprecated description for a constructor.
            \n" + "
            ", - "\n" - + "
            Deprecated.\n" - + "
            class_test2 passes.
            \n" + "\n" + + "
            Deprecated.\n" + + "
            class_test2 passes.
            \n" + "
            \n" + "", - "\n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            class_test3 passes.
            \n" + "\n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            class_test3 passes.
            \n" + "
            \n" + "", - "\n" - + "
            Deprecated.\n" - + "
            class_test4 passes.
            \n" + "\n" + + "
            Deprecated.\n" + + "
            class_test4 passes.
            \n" + "
            \n" + ""); checkOutput("pkg/TestClass.html", false, - "
            class_test2 passes. This is the second sentence of deprecated description for a field.
            \n" + "
            class_test2 passes. This is the second sentence of deprecated description for a field.
            \n" + "
            \n" + "", - "
            class_test3 passes. This is the second sentence of deprecated description for a constructor.
            \n" + "
            class_test3 passes. This is the second sentence of deprecated description for a constructor.
            \n" + "
            \n" + "", - "
            class_test4 passes. This is the second sentence of deprecated description for a method.
            \n" + "
            class_test4 passes. This is the second sentence of deprecated description for a method.
            \n" + "
            \n" + ""); checkOutput("pkg/TestEnum.html", true, "
            \n" + "
            @Deprecated(forRemoval=true)\n"
            -                + "public enum TestEnum\n"
            +                + "public enum TestEnum\n"
                             + "extends java.lang.Enum<TestEnum>
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            enum_test1 passes.
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            enum_test1 passes.
            \n" + "
            ", - "
            @Deprecated(forRemoval=true)\n" - + "public static final " - + "TestEnum FOR_REMOVAL
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            enum_test3 passes.
            \n" + "
            @Deprecated(forRemoval=true)\n" + + "public static final " + + "TestEnum FOR_REMOVAL
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            enum_test3 passes.
            \n" + "
            "); checkOutput("pkg/TestError.html", true, "
            \n" + "
            @Deprecated(forRemoval=true)\n"
            -                + "public class TestError\n"
            +                + "public class TestError\n"
                             + "extends java.lang.Error
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            error_test1 passes.
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            error_test1 passes.
            \n" + "
            "); checkOutput("pkg/TestException.html", true, "
            \n" + "
            @Deprecated(forRemoval=true)\n"
            -                + "public class TestException\n"
            +                + "public class TestException\n"
                             + "extends java.lang.Exception
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            exception_test1 passes.
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            exception_test1 passes.
            \n" + "
            "); checkOutput("pkg/TestInterface.html", true, "
            \n" + "
            @Deprecated(forRemoval=true)\n"
            -                + "public class TestInterface\n"
            +                + "public class TestInterface\n"
                             + "extends java.lang.Object
            \n" - + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" - + "
            interface_test1 passes.
            \n" + + "
            Deprecated, for removal: This API element is subject to removal in a future version.\n" + + "
            interface_test1 passes.
            \n" + "
            "); checkOutput("deprecated-list.html", true, @@ -214,95 +214,95 @@ public class TestDeprecatedDocs extends JavadocTester { + "
          • Enum Constants
          • \n" + "
          • Annotation Type Elements
          • \n" + "
          ", - "
          \n" + "
          \n" + "\n" - + "\n" + + "\n" + "\n" + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" + "", - "
          \n" + "
          \n" + "
          For Removal For Removal 
          ElementDescriptionElementDescription
          \n" - + "\n" + + "\n" + "\n" + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" + "\n" + "
          Enums Enums 
          EnumDescriptionEnumDescription
          pkg.TestEnum\n" - + "
          enum_test1 passes.
          \n" + + "
          pkg.TestEnum\n" + + "
          enum_test1 passes.
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "\n" - + "\n" + + "\n" + "\n" + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" + "\n" + "
          Exceptions Exceptions 
          ExceptionsDescriptionExceptionsDescription
          pkg.TestException\n" - + "
          exception_test1 passes.
          \n" + + "
          pkg.TestException\n" + + "
          exception_test1 passes.
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "\n" - + "\n" + + "\n" + "\n" + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" - + "\n" - + "\n" - + "\n" + + "\n" + + "\n" + "\n" + "\n" diff --git a/test/langtools/jdk/javadoc/doclet/testDocRootInlineTag/TestDocRootInlineTag.java b/test/langtools/jdk/javadoc/doclet/testDocRootInlineTag/TestDocRootInlineTag.java index 48772aa09a3..3c4f281f749 100644 --- a/test/langtools/jdk/javadoc/doclet/testDocRootInlineTag/TestDocRootInlineTag.java +++ b/test/langtools/jdk/javadoc/doclet/testDocRootInlineTag/TestDocRootInlineTag.java @@ -56,10 +56,10 @@ public class TestDocRootInlineTag extends JavadocTester { checkOutput("TestDocRootTag.html", true, "File", + + "title=\"class or interface in java.io\" class=\"external-link\">File", "index", "Second File Link", + + "title=\"class or interface in java.io\" class=\"external-link\">Second File Link", "The value of @docRoot is \"./\""); checkOutput("index-all.html", true, diff --git a/test/langtools/jdk/javadoc/doclet/testExternalOverriddenMethod/TestExternalOverriddenMethod.java b/test/langtools/jdk/javadoc/doclet/testExternalOverriddenMethod/TestExternalOverriddenMethod.java index fc9a64b48fa..2bf1006e443 100644 --- a/test/langtools/jdk/javadoc/doclet/testExternalOverriddenMethod/TestExternalOverriddenMethod.java +++ b/test/langtools/jdk/javadoc/doclet/testExternalOverriddenMethod/TestExternalOverriddenMethod.java @@ -55,14 +55,14 @@ public class TestExternalOverriddenMethod extends JavadocTester { checkOutput("pkg/XReader.html", true, "
          Overrides:
          \n" + "
          read in class " + + "title=\"class or interface in java.io\" class=\"external-link\">read in class " + "FilterReader
          ", + + "title=\"class or interface in java.io\" class=\"external-link\">FilterReader", "
          Specified by:
          \n" + "
          readInt in interface " + + "title=\"class or interface in java.io\" class=\"external-link\">readInt in interface " + "DataInput
          " + + "title=\"class or interface in java.io\" class=\"external-link\">DataInput" ); } } diff --git a/test/langtools/jdk/javadoc/doclet/testGroupName/TestGroupName.java b/test/langtools/jdk/javadoc/doclet/testGroupName/TestGroupName.java index 3c8db5141f5..b47f94b49ee 100644 --- a/test/langtools/jdk/javadoc/doclet/testGroupName/TestGroupName.java +++ b/test/langtools/jdk/javadoc/doclet/testGroupName/TestGroupName.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2020, Oracle and/or its affiliates. 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 @@ -65,8 +65,8 @@ public class TestGroupName extends JavadocTester { checkExit(Exit.OK); checkOutput("index.html", true, - "", ",\"abc < & > def\"],"); } @@ -100,8 +100,8 @@ public class TestGroupName extends JavadocTester { checkExit(Exit.OK); checkOutput("index.html", true, - "", ",\"abc < & > def\"],"); } diff --git a/test/langtools/jdk/javadoc/doclet/testHeadings/TestHeadings.java b/test/langtools/jdk/javadoc/doclet/testHeadings/TestHeadings.java index 3e11bd117c1..853618f1041 100644 --- a/test/langtools/jdk/javadoc/doclet/testHeadings/TestHeadings.java +++ b/test/langtools/jdk/javadoc/doclet/testHeadings/TestHeadings.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2020, Oracle and/or its affiliates. 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 @@ -52,38 +52,38 @@ public class TestHeadings extends JavadocTester { //Package summary checkOutput("pkg1/package-summary.html", true, - "\n" - + ""); // Class documentation checkOutput("pkg1/C1.html", true, - "\n" - + "\n" - + "", + "\n" + + "\n" + + "", "

          " + "Methods inherited from class java.lang.Object

          "); // Class use documentation checkOutput("pkg1/class-use/C1.html", true, - "\n" - + "", - "\n" - + "\n" - + ""); + "\n" + + "", + "\n" + + "\n" + + ""); // Deprecated checkOutput("deprecated-list.html", true, - "\n" - + ""); + "\n" + + ""); // Constant values checkOutput("constant-values.html", true, - "\n" - + "\n" - + ""); + + "\n" + + ""); // Serialized Form checkOutput("serialized-form.html", true, diff --git a/test/langtools/jdk/javadoc/doclet/testHiddenTag/TestHiddenTag.java b/test/langtools/jdk/javadoc/doclet/testHiddenTag/TestHiddenTag.java index 97863d3f09d..fbea99289b0 100644 --- a/test/langtools/jdk/javadoc/doclet/testHiddenTag/TestHiddenTag.java +++ b/test/langtools/jdk/javadoc/doclet/testHiddenTag/TestHiddenTag.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. 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 @@ -79,7 +79,7 @@ public class TestHiddenTag extends JavadocTester { ""); checkOutput("pkg1/A.VisibleInnerExtendsInvisibleInner.html", true, - "
          public static class " +
          +                "
          public static class " +
                           "A.VisibleInnerExtendsInvisibleInner\n" +
                           "extends A
          ", "visibleField", diff --git a/test/langtools/jdk/javadoc/doclet/testHref/TestHref.java b/test/langtools/jdk/javadoc/doclet/testHref/TestHref.java index b77b74cf2db..eb9b4a733bf 100644 --- a/test/langtools/jdk/javadoc/doclet/testHref/TestHref.java +++ b/test/langtools/jdk/javadoc/doclet/testHref/TestHref.java @@ -70,7 +70,7 @@ public class TestHref extends JavadocTester { //Header does not link to the page itself. "Class C4<E extends C4<E>>", //Signature does not link to the page itself. - "public abstract class C4<E extends C4<E>>" + "public abstract class C4<E extends C4<E>>" ); checkOutput(Output.OUT, false, diff --git a/test/langtools/jdk/javadoc/doclet/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java b/test/langtools/jdk/javadoc/doclet/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java index 34c73a2c736..76a3493afad 100644 --- a/test/langtools/jdk/javadoc/doclet/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java +++ b/test/langtools/jdk/javadoc/doclet/testHtmlDefinitionListTag/TestHtmlDefinitionListTag.java @@ -101,7 +101,7 @@ public class TestHtmlDefinitionListTag extends JavadocTester { // Optional Element should print properly nested definition list tags // for default value. checkOutput("pkg1/C1.html", true, - "
          public class C1\n" +
          +                "
          public class C1\n" +
                           "extends java.lang.Object\n" +
                           "implements java.io.Serializable
          "); checkOutput("pkg1/C4.html", true, @@ -214,8 +214,8 @@ public class TestHtmlDefinitionListTag extends JavadocTester { + "
          " + "C1.setUndecorated(boolean)
          \n" + "", - "Deprecated.\n" - + "
          As of JDK version 1.5, replaced by\n" + "Deprecated.\n" + + "
          As of JDK version 1.5, replaced by\n" + " " + "setUndecorated(boolean).
          \n" + "
          \n" @@ -229,8 +229,8 @@ public class TestHtmlDefinitionListTag extends JavadocTester { + "
          " + "C1.setUndecorated(boolean)
          \n" + "", - "Deprecated.\n" - + "
          As of JDK version 1.5, replaced by\n" + "Deprecated.\n" + + "
          As of JDK version 1.5, replaced by\n" + " " + "setUndecorated(boolean).
          \n" + "
          \n" @@ -239,7 +239,7 @@ public class TestHtmlDefinitionListTag extends JavadocTester { + "
          Throws:
          \n" + "
          java.io.IOException
          \n" + "", - "Deprecated." + "Deprecated." + "\n" + "
          The name for this class.
          "); } @@ -312,8 +312,8 @@ public class TestHtmlDefinitionListTag extends JavadocTester { + "
          " + "C1.setUndecorated(boolean)
          \n" + "", - "Deprecated.\n" - + "
          As of JDK version 1.5, replaced by\n" + "Deprecated.\n" + + "
          As of JDK version 1.5, replaced by\n" + " " + "setUndecorated(boolean).
          \n" + "
          \n" @@ -327,8 +327,8 @@ public class TestHtmlDefinitionListTag extends JavadocTester { + "
          " + "C1.setUndecorated(boolean)
          \n" + "", - "Deprecated.\n" - + "
          As of JDK version 1.5, replaced by\n" + "Deprecated.\n" + + "
          As of JDK version 1.5, replaced by\n" + " " + "setUndecorated(boolean).
          \n" + "
          \n" @@ -337,7 +337,7 @@ public class TestHtmlDefinitionListTag extends JavadocTester { + "
          Throws:
          \n" + "
          java.io.IOException
          \n" + "", - "Deprecated." + "Deprecated." + "\n" + "
          " + "The name for this class.
          "); @@ -347,39 +347,39 @@ public class TestHtmlDefinitionListTag extends JavadocTester { // Test with -nocomment and -nodeprecated options. The ClassDocs whould // not display definition lists for any member details. checkOutput("pkg1/C1.html", expectFound, - "
          public " + - "void readObject()\n" + + "
          public " + + "void readObject()\n" + " throws java.io.IOException
          \n" + "\n" + ""); checkOutput("pkg1/C2.html", expectFound, - "
          public" + - " C2()
          \n" + + "
          public" + + " C2()
          \n" + "\n" + ""); checkOutput("pkg1/C1.ModalExclusionType.html", expectFound, - "
          public static final " + - "" + - "C1.ModalExclusionType APPLICATION_EXCLUDE
          \n" + + "
          public static final " + + "" + + "C1.ModalExclusionType APPLICATION_EXCLUDE
          \n" + "\n" + ""); checkOutput("serialized-form.html", expectFound, "
          boolean " +
                           "undecorated
          \n" + - "
          " + + "
          " + "Deprecated.\n" - + "
          As of JDK version 1.5, replaced by\n" + + "
          As of JDK version 1.5, replaced by\n" + " " + "setUndecorated(boolean).
          \n" + "
          \n" + "", - "" + "" + "Deprecated.\n" - + "
          As of JDK version" + + "
          As of JDK version" + " 1.5, replaced by\n" + " " + "setUndecorated(boolean).
          \n" diff --git a/test/langtools/jdk/javadoc/doclet/testHtmlLandmarkRegions/TestHtmlLandmarkRegions.java b/test/langtools/jdk/javadoc/doclet/testHtmlLandmarkRegions/TestHtmlLandmarkRegions.java index a6b66802f18..605a9156e76 100644 --- a/test/langtools/jdk/javadoc/doclet/testHtmlLandmarkRegions/TestHtmlLandmarkRegions.java +++ b/test/langtools/jdk/javadoc/doclet/testHtmlLandmarkRegions/TestHtmlLandmarkRegions.java @@ -74,7 +74,7 @@ public class TestHtmlLandmarkRegions extends JavadocTester { checkExit(Exit.OK); checkOrder("index.html", - "
          \n" + "
          \n" + "
          Fields Fields 
          FieldDescriptionFieldDescription
          pkg.DeprecatedClassByAnnotation.field
          pkg.DeprecatedClassByAnnotation.field
          pkg.TestAnnotationType.field\n" - + "
          annotation_test4 passes.
          \n" + + "
          pkg.TestAnnotationType.field\n" + + "
          annotation_test4 passes.
          \n" + "
          pkg.TestClass.field\n" - + "
          class_test2 passes. This is the second sentence of deprecated description for a field.
          \n" + + "
          pkg.TestClass.field\n" + + "
          class_test2 passes. This is the second sentence of deprecated description for a field.
          \n" + "
          pkg.TestError.field\n" - + "
          error_test2 passes.
          \n" + + "
          pkg.TestError.field\n" + + "
          error_test2 passes.
          \n" + "
          pkg.TestException.field\n" - + "
          exception_test2 passes.
          \n" + + "
          pkg.TestException.field\n" + + "
          exception_test2 passes.
          \n" + "
          pkg.TestInterface.field\n" - + "
          interface_test2 passes.
          \n" + + "
          pkg.TestInterface.field\n" + + "
          interface_test2 passes.
          \n" + "
          " + "" + "ClassDescriptionModifier and TypeFieldDescriptionModifier and TypeFieldDescriptionPackageDescriptionModifier and TypeFieldDescriptionPackageDescriptionModifier and TypeFieldDescriptionMethodDescriptionMethodDescription" + "" + "Modifier and TypeConstant FieldValueConstant FieldValue
          ", - "
          \n
          ", - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          ", + "
          \n
          "); checkOutput("pkg1/package-summary.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("pkg1/class-use/TestTable.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("index.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("deprecated-list.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("constant-values.html", true, - "
          \n
          "); + "
          \n
          "); } } diff --git a/test/langtools/jdk/javadoc/doclet/testHtmlTableTags/TestHtmlTableTags.java b/test/langtools/jdk/javadoc/doclet/testHtmlTableTags/TestHtmlTableTags.java index c675892b588..dc0c1370217 100644 --- a/test/langtools/jdk/javadoc/doclet/testHtmlTableTags/TestHtmlTableTags.java +++ b/test/langtools/jdk/javadoc/doclet/testHtmlTableTags/TestHtmlTableTags.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2020, Oracle and/or its affiliates. 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 @@ -65,70 +65,70 @@ public class TestHtmlTableTags extends JavadocTester { void checkHtmlTableTag() { //Package summary checkOutput("pkg1/package-summary.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); checkOutput("pkg2/package-summary.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); // Class documentation checkOutput("pkg1/C1.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); checkOutput("pkg2/C2.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); checkOutput("pkg2/C2.ModalExclusionType.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("pkg2/C3.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("pkg2/C4.html", true, - "
          \n
          "); + "
          \n
          "); // Class use documentation checkOutput("pkg1/class-use/I1.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("pkg1/class-use/C1.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); checkOutput("pkg2/class-use/C2.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); checkOutput("pkg2/class-use/C2.ModalExclusionType.html", true, - "
          \n
          "); + "
          \n
          "); checkOutput("pkg2/class-use/C2.ModalExclusionType.html", true, - "
          \n
          "); + "
          \n
          "); // Package use documentation checkOutput("pkg1/package-use.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); checkOutput("pkg2/package-use.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); // Deprecated checkOutput("deprecated-list.html", true, - "
          \n
          ", - "
          \n
          "); + "
          \n
          ", + "
          \n
          "); // Constant values checkOutput("constant-values.html", true, - "
          \n
          "); + "
          \n
          "); // Overview Summary checkOutput("index.html", true, - "
          \n
          "); + "
          \n
          "); } /* @@ -137,109 +137,109 @@ public class TestHtmlTableTags extends JavadocTester { void checkHtmlTableSummaries() { //Package summary checkOutput("pkg1/package-summary.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/package-summary.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); // Class documentation checkOutput("pkg1/C1.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n", + "
          \n", "
          "); checkOutput("pkg2/C2.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/C2.ModalExclusionType.html", true, - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/C3.html", true, - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/C4.html", true, - "
          \n" + "
          \n" + "
          "); // Class use documentation checkOutput("pkg1/class-use/I1.html", true, - "
          \n" + "
          \n" + "
          "); checkOutput("pkg1/class-use/C1.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/class-use/C2.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/class-use/C2.ModalExclusionType.html", true, - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/class-use/C2.ModalExclusionType.html", true, - "
          \n" + "
          \n" + "
          "); // Package use documentation checkOutput("pkg1/package-use.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); checkOutput("pkg2/package-use.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); // Deprecated checkOutput("deprecated-list.html", true, - "
          \n" + "
          \n" + "
          ", - "
          \n" + "
          \n" + "
          "); // Constant values checkOutput("constant-values.html", true, - "
          \n" + "
          \n" + "
          "); // Overview Summary checkOutput("index.html", true, - "
          \n" + "
          \n" + "
          "); } @@ -249,110 +249,110 @@ public class TestHtmlTableTags extends JavadocTester { void checkHtmlTableCaptions() { //Package summary checkOutput("pkg1/package-summary.html", true, - "", - ""); checkOutput("pkg2/package-summary.html", true, - "", - ""); // Class documentation checkOutput("pkg1/C1.html", true, - "", + "", "
          \n"); + + " aria-controls=\"member-summary_tabpanel\" tabindex=\"-1\" onkeydown=\"switchTab(event)\"" + + " id=\"t6\" class=\"table-tab\" onclick=\"show(32);\">Deprecated Methods\n"); checkOutput("pkg2/C2.html", true, - "", - ""); + "", + ""); checkOutput("pkg2/C2.ModalExclusionType.html", true, - ""); + ""); checkOutput("pkg2/C3.html", true, - ""); checkOutput("pkg2/C4.html", true, - ""); // Class use documentation checkOutput("pkg1/class-use/I1.html", true, ""); checkOutput("pkg1/class-use/C1.html", true, "", ""); checkOutput("pkg2/class-use/C2.html", true, "", ""); checkOutput("pkg2/class-use/C2.ModalExclusionType.html", true, ""); + + " "); // Package use documentation checkOutput("pkg1/package-use.html", true, "", + + "pkg1 ", ""); + + " "); checkOutput("pkg2/package-use.html", true, "", + + "pkg2 ", ""); + + " "); // Deprecated checkOutput("deprecated-list.html", true, - "", - ""); // Constant values checkOutput("constant-values.html", true, ""); + + "C1 "); // Overview Summary checkOutput("index.html", true, - ""); + ""); } /* @@ -361,116 +361,116 @@ public class TestHtmlTableTags extends JavadocTester { void checkHtmlTableHeaders() { //Package summary checkOutput("pkg1/package-summary.html", true, - "\n" - + "", - "\n" - + ""); checkOutput("pkg2/package-summary.html", true, - "\n" - + "", - "\n" - + ""); // Class documentation checkOutput("pkg1/C1.html", true, - "\n" - + "\n" - + "", - "\n" - + "\n" - + ""); + "\n" + + "\n" + + "", + "\n" + + "\n" + + ""); checkOutput("pkg2/C2.html", true, - "\n" - + "\n" - + "", - "\n" - + ""); + "\n" + + "\n" + + "", + "\n" + + ""); checkOutput("pkg2/C2.ModalExclusionType.html", true, - "\n" - + ""); + "\n" + + ""); checkOutput("pkg2/C3.html", true, - "\n" - + "\n" - + ""); + "\n" + + "\n" + + ""); checkOutput("pkg2/C4.html", true, - "\n" - + "\n" - + ""); + "\n" + + "\n" + + ""); // Class use documentation checkOutput("pkg1/class-use/I1.html", true, - "\n" - + ""); + "\n" + + ""); checkOutput("pkg1/class-use/C1.html", true, - "\n" - + "\n" - + "", - "\n" - + "\n" - + ""); + "\n" + + "\n" + + "", + "\n" + + "\n" + + ""); checkOutput("pkg2/class-use/C2.html", true, - "\n" - + "\n" - + "", - "\n" - + "\n" - + ""); + "\n" + + "\n" + + "", + "\n" + + "\n" + + ""); checkOutput("pkg2/class-use/C2.ModalExclusionType.html", true, - "\n" - + "", - "\n" - + "\n" - + ""); + "\n" + + "", + "\n" + + "\n" + + ""); // Package use documentation checkOutput("pkg1/package-use.html", true, - "\n" - + "", - "\n" - + ""); + "\n" + + "", + "\n" + + ""); checkOutput("pkg2/package-use.html", true, - "\n" - + "", - "\n" - + ""); + "\n" + + "", + "\n" + + ""); // Deprecated checkOutput("deprecated-list.html", true, - "\n" - + "", - "\n" - + ""); + "\n" + + "", + "\n" + + ""); // Constant values checkOutput("constant-values.html", true, - "\n" - + "\n" - + ""); + + ""); // Overview Summary checkOutput("index.html", true, - "\n" - + ""); } } diff --git a/test/langtools/jdk/javadoc/doclet/testHtmlTag/TestHtmlTag.java b/test/langtools/jdk/javadoc/doclet/testHtmlTag/TestHtmlTag.java index e6b3a0dbf06..e1380a1b7f5 100644 --- a/test/langtools/jdk/javadoc/doclet/testHtmlTag/TestHtmlTag.java +++ b/test/langtools/jdk/javadoc/doclet/testHtmlTag/TestHtmlTag.java @@ -107,7 +107,7 @@ public class TestHtmlTag extends JavadocTester { checkExit(Exit.OK); checkOutput("pkg3/package-summary.html", true, - "
          \n" + "
          \n" + "

          This is the first line. Note the newlines before the <p> is relevant.

          \n" + "
          "); @@ -154,7 +154,7 @@ public class TestHtmlTag extends JavadocTester { + " "); checkOutput("pkg3/A.ActivationDesc.html", true, - "
          public class A.ActivationDesc\n"
          +                "
          public class A.ActivationDesc\n"
                           + "extends java.lang.Object\n"
                           + "implements java.io.Serializable
          \n" + "
          An activation descriptor contains the information necessary to activate\n" @@ -175,7 +175,7 @@ public class TestHtmlTag extends JavadocTester { + " during reinitialization/activation.
          "); checkOutput("pkg3/A.ActivationGroupID.html", true, - "
          public class A.ActivationGroupID\n"
          +                "
          public class A.ActivationGroupID\n"
                           + "extends java.lang.Object\n"
                           + "implements java.io.Serializable
          \n" + "
          The identifier for a registered activation group serves several purposes:\n" diff --git a/test/langtools/jdk/javadoc/doclet/testHtmlVersion/TestHtmlVersion.java b/test/langtools/jdk/javadoc/doclet/testHtmlVersion/TestHtmlVersion.java index 5d497403cd9..5a96d2e0c72 100644 --- a/test/langtools/jdk/javadoc/doclet/testHtmlVersion/TestHtmlVersion.java +++ b/test/langtools/jdk/javadoc/doclet/testHtmlVersion/TestHtmlVersion.java @@ -71,11 +71,11 @@ public class TestHtmlVersion extends JavadocTester { checkOutput("index.html", true, "", "\n", - "
          \n" + "
            \n", + "
            \n" + "
          Class Summary" + "Class Summary" + " Interface Summary" + "Interface Summary" + " Enum Summary" + "Enum Summary" + " Annotation Types Summary" + "Annotation Types Summary" + " Fields Fields Nested Classes Constructors Nested Classes Constructors Enum Constants Enum Constants Required Elements " + "Required Elements " + "Optional Elements " + "Optional Elements " + "Packages that use I1" + + "title=\"interface in pkg1\">I1" + " Fields in " + "pkg2 declared as C1 " + + "title=\"class in pkg1\">C1 " + "Methods in " + "pkg2 that return C1" + + "title=\"class in pkg1\">C1" + " Fields in " + "pkg1 declared as C2" + + "title=\"class in pkg2\">C2" + " Methods in " + "pkg1 that return C2" + + "title=\"class in pkg2\">C2" + " Methods in " + "pkg2 that return C2.ModalExclusionType" - + " Packages that use " - + "pkg1 Classes in " + "pkg1 used by pkg1" - + " Packages that use " - + "pkg2 Classes in " + "pkg2 used by pkg1" - + " Fields" + "Fields" + " Methods" + "Methods" + " pkg1." - + "C1 Packages Packages 
          " + "" + "ClassDescription" + "" + "InterfaceDescription" + "" + "EnumDescription" + "" + "Annotation TypeDescriptionModifier and TypeFieldDescriptionModifier and TypeMethodDescriptionModifier and TypeFieldDescriptionModifier and TypeMethodDescriptionModifier and TypeClassDescriptionConstructorDescriptionModifier and TypeClassDescriptionConstructorDescriptionEnum ConstantDescriptionEnum ConstantDescriptionModifier and TypeRequired ElementDescriptionModifier and TypeRequired ElementDescriptionModifier and TypeOptional ElementDescriptionModifier and TypeOptional ElementDescriptionPackageDescriptionPackageDescriptionModifier and TypeFieldDescriptionModifier and TypeMethodDescriptionModifier and TypeFieldDescriptionModifier and TypeMethodDescriptionModifier and TypeFieldDescriptionModifier and TypeMethodDescriptionModifier and TypeFieldDescriptionModifier and TypeMethodDescriptionPackageDescriptionModifier and TypeMethodDescriptionPackageDescriptionModifier and TypeMethodDescriptionPackageDescriptionClassDescriptionPackageDescriptionClassDescriptionPackageDescriptionClassDescriptionPackageDescriptionClassDescriptionFieldDescriptionMethodDescriptionFieldDescriptionMethodDescription" + "" + "Modifier and TypeConstant FieldValueValue" + "" + "PackageDescription
          \n" + "
          ", - "
          \n" + "
          \n" + "