src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java Wed Nov 27 12:18:40 2019 +0100
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeBuilder.java Wed Nov 27 13:08:16 2019 +0100
@@ -59,11 +59,6 @@
private final AnnotationTypeWriter writer;
/**
- * The content tree for the annotation documentation.
- */
- private Content contentTree;
-
- /**
* Construct a new ClassBuilder.
*
* @param context the build context.
@@ -97,17 +92,16 @@
*/
@Override
public void build() throws DocletException {
- buildAnnotationTypeDoc(contentTree);
+ buildAnnotationTypeDoc();
}
/**
* Build the annotation type documentation.
*
- * @param contentTree the content tree to which the documentation will be added
* @throws DocletException if there is a problem building the documentation
*/
- protected void buildAnnotationTypeDoc(Content contentTree) throws DocletException {
- contentTree = writer.getHeader(resources.getText("doclet.AnnotationType") +
+ protected void buildAnnotationTypeDoc() throws DocletException {
+ Content contentTree = writer.getHeader(resources.getText("doclet.AnnotationType") +
" " + utils.getSimpleName(annotationType));
Content annotationContentTree = writer.getAnnotationContentHeader();
@@ -115,8 +109,8 @@
buildMemberSummary(annotationContentTree);
buildAnnotationTypeMemberDetails(annotationContentTree);
- writer.addAnnotationContentTree(contentTree, annotationContentTree);
- writer.addFooter(contentTree);
+ writer.addAnnotationContentTree(annotationContentTree);
+ writer.addFooter();
writer.printDocument(contentTree);
copyDocFiles();
}