diff -r ce4f0769b4b2 -r 4c43e51433ba src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java Tue May 14 10:14:53 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java Tue May 14 10:14:53 2013 -0700 @@ -117,7 +117,6 @@ * @return a content object for the signature */ public Content getSignature(MethodDoc method) { - writer.displayLength = 0; Content pre = new HtmlTree(HtmlTag.PRE); writer.addAnnotationInfo(method, pre); addModifiers(method, pre); @@ -129,8 +128,9 @@ } else { addName(method.name(), pre); } - addParameters(method, pre); - addExceptions(method, pre); + int indent = pre.charCount(); + addParameters(method, pre, indent); + addExceptions(method, pre, indent); return pre; }