1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Mon Apr 08 11:57:37 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Tue Apr 09 14:18:22 2013 -0700 1.3 @@ -1860,11 +1860,13 @@ 1.4 * Add the annotation types of the executable receiver. 1.5 * 1.6 * @param method the executable to write the receiver annotations for. 1.7 + * @param descList list of annotation description. 1.8 * @param htmltree the documentation tree to which the annotation info will be 1.9 * added 1.10 */ 1.11 - public void addReceiverAnnotationInfo(ExecutableMemberDoc method, Content htmltree) { 1.12 - addAnnotationInfo(method, method.receiverAnnotations(), htmltree); 1.13 + public void addReceiverAnnotationInfo(ExecutableMemberDoc method, AnnotationDesc[] descList, 1.14 + Content htmltree) { 1.15 + addAnnotationInfo(0, method, descList, false, htmltree); 1.16 } 1.17 1.18 /** 1.19 @@ -1915,13 +1917,16 @@ 1.20 private boolean addAnnotationInfo(int indent, Doc doc, 1.21 AnnotationDesc[] descList, boolean lineBreak, Content htmltree) { 1.22 List<String> annotations = getAnnotations(indent, descList, lineBreak); 1.23 + String sep =""; 1.24 if (annotations.size() == 0) { 1.25 return false; 1.26 } 1.27 Content annotationContent; 1.28 for (Iterator<String> iter = annotations.iterator(); iter.hasNext();) { 1.29 + htmltree.addContent(sep); 1.30 annotationContent = new RawHtml(iter.next()); 1.31 htmltree.addContent(annotationContent); 1.32 + sep = " "; 1.33 } 1.34 return true; 1.35 }