< prev index next >

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

Print this page

        

@@ -142,19 +142,20 @@
         }
         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));
+                detailsTree.add(writer.getAnnotationDoc(
+                        annotationDocTree, currentMember == lastMember));
             }
             memberDetailsTree.add(writer.getAnnotationDetails(annotationDetailsTreeHeader, detailsTree));
         }
     }
 
< prev index next >