< prev index next >

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

Print this page

        

@@ -126,21 +126,22 @@
         }
         if (hasMembersToDocument()) {
             Content propertyDetailsTreeHeader = writer.getPropertyDetailsTreeHeader(typeElement,
                     memberDetailsTree);
             Content propertyDetailsTree = writer.getMemberTreeHeader();
-
+            Element lastElement = properties.get(properties.size() - 1);
             for (Element property : properties) {
                 currentProperty = (ExecutableElement)property;
                 Content propertyDocTree = writer.getPropertyDocTreeHeader(currentProperty,
                         propertyDetailsTree);
 
                 buildSignature(propertyDocTree);
                 buildPropertyComments(propertyDocTree);
                 buildTagInfo(propertyDocTree);
 
-                propertyDetailsTree.add(writer.getPropertyDoc(propertyDocTree));
+                propertyDetailsTree.add(writer.getPropertyDoc(
+                        propertyDocTree, currentProperty == lastElement));
             }
             memberDetailsTree.add(
                     writer.getPropertyDetails(propertyDetailsTreeHeader, propertyDetailsTree));
         }
     }
< prev index next >