src/share/classes/com/sun/tools/doclets/formats/html/TagletWriterImpl.java

changeset 2116
bf6b11347b1a
parent 1935
8c55df2442c1
child 2147
130b8c0e570e
equal deleted inserted replaced
2115:79649bf21a92 2116:bf6b11347b1a
116 new StringContent(configuration.getText("doclet.Deprecated")))); 116 new StringContent(configuration.getText("doclet.Deprecated"))));
117 result.addContent(RawHtml.nbsp); 117 result.addContent(RawHtml.nbsp);
118 if (deprs.length > 0) { 118 if (deprs.length > 0) {
119 Content body = commentTagsToOutput(null, doc, 119 Content body = commentTagsToOutput(null, doc,
120 deprs[0].inlineTags(), false); 120 deprs[0].inlineTags(), false);
121 result.addContent(HtmlTree.SPAN(HtmlStyle.italic, body)); 121 if (!body.isEmpty())
122 result.addContent(HtmlTree.SPAN(HtmlStyle.italic, body));
122 } 123 }
123 } else { 124 } else {
124 if (Util.isDeprecated(member.containingClass())) { 125 if (Util.isDeprecated(member.containingClass())) {
125 result.addContent(HtmlTree.SPAN(HtmlStyle.strong, 126 result.addContent(HtmlTree.SPAN(HtmlStyle.strong,
126 new StringContent(configuration.getText("doclet.Deprecated")))); 127 new StringContent(configuration.getText("doclet.Deprecated"))));

mercurial