< prev index next >

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

Print this page

        

*** 126,145 **** } if (!fields.isEmpty()) { Content fieldDetailsTreeHeader = writer.getFieldDetailsTreeHeader(typeElement, memberDetailsTree); Content fieldDetailsTree = writer.getMemberTreeHeader(); for (Element element : fields) { currentElement = (VariableElement)element; Content fieldDocTree = writer.getFieldDocTreeHeader(currentElement, fieldDetailsTree); buildSignature(fieldDocTree); buildDeprecationInfo(fieldDocTree); buildFieldComments(fieldDocTree); buildTagInfo(fieldDocTree); ! fieldDetailsTree.add(writer.getFieldDoc(fieldDocTree)); } memberDetailsTree.add( writer.getFieldDetails(fieldDetailsTreeHeader, fieldDetailsTree)); } } --- 126,147 ---- } if (!fields.isEmpty()) { Content fieldDetailsTreeHeader = writer.getFieldDetailsTreeHeader(typeElement, memberDetailsTree); Content fieldDetailsTree = writer.getMemberTreeHeader(); + Element lastElement = fields.get(fields.size() - 1); for (Element element : fields) { currentElement = (VariableElement)element; Content fieldDocTree = writer.getFieldDocTreeHeader(currentElement, fieldDetailsTree); buildSignature(fieldDocTree); buildDeprecationInfo(fieldDocTree); buildFieldComments(fieldDocTree); buildTagInfo(fieldDocTree); ! fieldDetailsTree.add(writer.getFieldDoc( ! fieldDocTree, currentElement == lastElement)); } memberDetailsTree.add( writer.getFieldDetails(fieldDetailsTreeHeader, fieldDetailsTree)); } }
< prev index next >