< prev index next >

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

Print this page

        

*** 140,160 **** if (hasMembersToDocument()) { writer.addAnnotationFieldDetailsMarker(memberDetailsTree); Content annotationDetailsTreeHeader = writer.getAnnotationDetailsTreeHeader(typeElement); Content detailsTree = writer.getMemberTreeHeader(); for (Element member : members) { currentMember = member; Content annotationDocTree = writer.getAnnotationDocTreeHeader(currentMember, detailsTree); buildSignature(annotationDocTree); buildDeprecationInfo(annotationDocTree); buildMemberComments(annotationDocTree); buildTagInfo(annotationDocTree); ! detailsTree.add(writer.getAnnotationDoc(annotationDocTree)); } memberDetailsTree.add(writer.getAnnotationDetails(annotationDetailsTreeHeader, detailsTree)); } } --- 140,162 ---- if (hasMembersToDocument()) { writer.addAnnotationFieldDetailsMarker(memberDetailsTree); Content annotationDetailsTreeHeader = writer.getAnnotationDetailsTreeHeader(typeElement); Content detailsTree = writer.getMemberTreeHeader(); + Element lastElement = members.get(members.size() - 1); for (Element member : members) { currentMember = member; Content annotationDocTree = writer.getAnnotationDocTreeHeader(currentMember, detailsTree); buildSignature(annotationDocTree); buildDeprecationInfo(annotationDocTree); buildMemberComments(annotationDocTree); buildTagInfo(annotationDocTree); ! detailsTree.add(writer.getAnnotationDoc( ! annotationDocTree, currentMember == lastElement)); } memberDetailsTree.add(writer.getAnnotationDetails(annotationDetailsTreeHeader, detailsTree)); } }
< prev index next >