< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/TagletWriterImpl.java

Print this page

        

*** 198,208 **** CommentHelper ch = utils.getCommentHelper(element); // define id attributes for state components so that generated descriptions may refer to them boolean defineID = (element.getKind() == ElementKind.RECORD) && (paramTag instanceof ParamTree) && !((ParamTree) paramTag).isTypeParameter(); Content nameTree = new StringContent(paramName); ! body.add(HtmlTree.CODE(defineID ? HtmlTree.A_ID("param-" + paramName, nameTree) : nameTree)); body.add(" - "); List<? extends DocTree> description = ch.getDescription(configuration, paramTag); body.add(htmlWriter.commentTagsToContent(paramTag, element, description, false, inSummary)); return HtmlTree.DD(body); } --- 198,208 ---- CommentHelper ch = utils.getCommentHelper(element); // define id attributes for state components so that generated descriptions may refer to them boolean defineID = (element.getKind() == ElementKind.RECORD) && (paramTag instanceof ParamTree) && !((ParamTree) paramTag).isTypeParameter(); Content nameTree = new StringContent(paramName); ! body.add(HtmlTree.CODE(defineID ? HtmlTree.SPAN_ID("param-" + paramName, nameTree) : nameTree)); body.add(" - "); List<? extends DocTree> description = ch.getDescription(configuration, paramTag); body.add(htmlWriter.commentTagsToContent(paramTag, element, description, false, inSummary)); return HtmlTree.DD(body); }
*** 425,435 **** int count = htmlWriter.indexAnchorTable .compute(anchorName, (k, v) -> v == null ? 0 : v + 1); if (count > 0) { anchorName += "-" + count; } ! result = HtmlTree.A_ID(HtmlStyle.searchTagResult, anchorName, new StringContent(tagText)); if (configuration.createindex && !tagText.isEmpty()) { SearchIndexItem si = new SearchIndexItem(); si.setSystemProperty(isSystemProperty); si.setLabel(tagText); si.setDescription(desc); --- 425,435 ---- int count = htmlWriter.indexAnchorTable .compute(anchorName, (k, v) -> v == null ? 0 : v + 1); if (count > 0) { anchorName += "-" + count; } ! result = HtmlTree.SPAN(anchorName, HtmlStyle.searchTagResult, new StringContent(tagText)); if (configuration.createindex && !tagText.isEmpty()) { SearchIndexItem si = new SearchIndexItem(); si.setSystemProperty(isSystemProperty); si.setLabel(tagText); si.setDescription(desc);
< prev index next >