< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/AnnotationTypeRequiredMemberBuilder.java

Print this page

        

*** 142,160 **** } if (hasMembersToDocument()) { writer.addAnnotationDetailsMarker(memberDetailsTree); Content annotationDetailsTreeHeader = writer.getAnnotationDetailsTreeHeader(typeElement); Content detailsTree = writer.getMemberTreeHeader(); ! for (Element member : members) { currentMember = member; Content annotationDocTree = writer.getAnnotationDocTreeHeader( currentMember, detailsTree); buildAnnotationTypeMemberChildren(annotationDocTree); ! detailsTree.add(writer.getAnnotationDoc(annotationDocTree)); } memberDetailsTree.add(writer.getAnnotationDetails(annotationDetailsTreeHeader, detailsTree)); } } --- 142,161 ---- } if (hasMembersToDocument()) { writer.addAnnotationDetailsMarker(memberDetailsTree); Content annotationDetailsTreeHeader = writer.getAnnotationDetailsTreeHeader(typeElement); Content detailsTree = writer.getMemberTreeHeader(); ! Element lastMember = members.get((members.size() - 1)); for (Element member : members) { currentMember = member; Content annotationDocTree = writer.getAnnotationDocTreeHeader( currentMember, detailsTree); buildAnnotationTypeMemberChildren(annotationDocTree); ! detailsTree.add(writer.getAnnotationDoc( ! annotationDocTree, currentMember == lastMember)); } memberDetailsTree.add(writer.getAnnotationDetails(annotationDetailsTreeHeader, detailsTree)); } }
< prev index next >