< prev index next >

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

Print this page

        

@@ -128,20 +128,22 @@
         if (hasMembersToDocument()) {
             Content methodDetailsTreeHeader = writer.getMethodDetailsTreeHeader(typeElement,
                     memberDetailsTree);
             Content methodDetailsTree = writer.getMemberTreeHeader();
 
+            Element lastElement = methods.get(methods.size() - 1);
             for (Element method : methods) {
                 currentMethod = (ExecutableElement)method;
                 Content methodDocTree = writer.getMethodDocTreeHeader(currentMethod, methodDetailsTree);
 
                 buildSignature(methodDocTree);
                 buildDeprecationInfo(methodDocTree);
                 buildMethodComments(methodDocTree);
                 buildTagInfo(methodDocTree);
 
-                methodDetailsTree.add(writer.getMethodDoc(methodDocTree));
+                methodDetailsTree.add(writer.getMethodDoc(
+                        methodDocTree, currentMethod == lastElement));
             }
             memberDetailsTree.add(writer.getMethodDetails(methodDetailsTreeHeader, methodDetailsTree));
         }
     }
 
< prev index next >