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

changeset 1744
76a691e3e961
parent 1743
6a5288a298fd
child 1745
937aa020c667
equal deleted inserted replaced
1743:6a5288a298fd 1744:76a691e3e961
102 result.addContent(RawHtml.nbsp); 102 result.addContent(RawHtml.nbsp);
103 if (deprs.length > 0) { 103 if (deprs.length > 0) {
104 Tag[] commentTags = deprs[0].inlineTags(); 104 Tag[] commentTags = deprs[0].inlineTags();
105 if (commentTags.length > 0) { 105 if (commentTags.length > 0) {
106 result.addContent(commentTagsToOutput(null, doc, 106 result.addContent(commentTagsToOutput(null, doc,
107 deprs[0].inlineTags(), false).toString() 107 deprs[0].inlineTags(), false).getContent()
108 ); 108 );
109 } 109 }
110 } 110 }
111 } 111 }
112 } else { 112 } else {
114 if (Util.isDeprecated((ProgramElementDoc) doc)) { 114 if (Util.isDeprecated((ProgramElementDoc) doc)) {
115 result.addContent(HtmlTree.SPAN(HtmlStyle.strong, 115 result.addContent(HtmlTree.SPAN(HtmlStyle.strong,
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 TagletOutput body = commentTagsToOutput(null, doc, 119 TagletOutputImpl body = commentTagsToOutput(null, doc,
120 deprs[0].inlineTags(), false); 120 deprs[0].inlineTags(), false);
121 result.addContent(HtmlTree.I(new RawHtml(body.toString()))); 121 result.addContent(HtmlTree.I(body.getContent()));
122 } 122 }
123 } else { 123 } else {
124 if (Util.isDeprecated(member.containingClass())) { 124 if (Util.isDeprecated(member.containingClass())) {
125 result.addContent(HtmlTree.SPAN(HtmlStyle.strong, 125 result.addContent(HtmlTree.SPAN(HtmlStyle.strong,
126 new StringContent(configuration.getText("doclet.Deprecated")))); 126 new StringContent(configuration.getText("doclet.Deprecated"))));
319 } 319 }
320 320
321 /** 321 /**
322 * {@inheritDoc} 322 * {@inheritDoc}
323 */ 323 */
324 public TagletOutput commentTagsToOutput(Tag holderTag, Tag[] tags) { 324 public TagletOutputImpl commentTagsToOutput(Tag holderTag, Tag[] tags) {
325 return commentTagsToOutput(holderTag, null, tags, false); 325 return commentTagsToOutput(holderTag, null, tags, false);
326 } 326 }
327 327
328 /** 328 /**
329 * {@inheritDoc} 329 * {@inheritDoc}
330 */ 330 */
331 public TagletOutput commentTagsToOutput(Doc holderDoc, Tag[] tags) { 331 public TagletOutputImpl commentTagsToOutput(Doc holderDoc, Tag[] tags) {
332 return commentTagsToOutput(null, holderDoc, tags, false); 332 return commentTagsToOutput(null, holderDoc, tags, false);
333 } 333 }
334 334
335 /** 335 /**
336 * {@inheritDoc} 336 * {@inheritDoc}
337 */ 337 */
338 public TagletOutput commentTagsToOutput(Tag holderTag, 338 public TagletOutputImpl commentTagsToOutput(Tag holderTag,
339 Doc holderDoc, Tag[] tags, boolean isFirstSentence) { 339 Doc holderDoc, Tag[] tags, boolean isFirstSentence) {
340 return new TagletOutputImpl(new RawHtml(htmlWriter.commentTagsToString( 340 return new TagletOutputImpl(new RawHtml(htmlWriter.commentTagsToString(
341 holderTag, holderDoc, tags, isFirstSentence))); 341 holderTag, holderDoc, tags, isFirstSentence)));
342 } 342 }
343 343

mercurial