< prev index next >

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

Print this page

        

*** 137,156 **** if (hasMembersToDocument()) { Content constructorDetailsTreeHeader = writer.getConstructorDetailsTreeHeader(typeElement, memberDetailsTree); Content constructorDetailsTree = writer.getMemberTreeHeader(); for (Element contructor : constructors) { currentConstructor = (ExecutableElement)contructor; Content constructorDocTree = writer.getConstructorDocTreeHeader(currentConstructor, constructorDetailsTree); buildSignature(constructorDocTree); buildDeprecationInfo(constructorDocTree); buildConstructorComments(constructorDocTree); buildTagInfo(constructorDocTree); ! constructorDetailsTree.add(writer.getConstructorDoc(constructorDocTree)); } memberDetailsTree.add( writer.getConstructorDetails(constructorDetailsTreeHeader, constructorDetailsTree)); } } --- 137,158 ---- if (hasMembersToDocument()) { Content constructorDetailsTreeHeader = writer.getConstructorDetailsTreeHeader(typeElement, memberDetailsTree); Content constructorDetailsTree = writer.getMemberTreeHeader(); + Element lastElement = constructors.get(constructors.size() - 1); for (Element contructor : constructors) { currentConstructor = (ExecutableElement)contructor; Content constructorDocTree = writer.getConstructorDocTreeHeader(currentConstructor, constructorDetailsTree); buildSignature(constructorDocTree); buildDeprecationInfo(constructorDocTree); buildConstructorComments(constructorDocTree); buildTagInfo(constructorDocTree); ! constructorDetailsTree.add(writer.getConstructorDoc(constructorDocTree, ! currentConstructor == lastElement)); } memberDetailsTree.add( writer.getConstructorDetails(constructorDetailsTreeHeader, constructorDetailsTree)); } }
< prev index next >