src/share/classes/com/sun/tools/doclets/formats/html/MethodWriterImpl.java

changeset 1741
4c43e51433ba
parent 1738
6ea964c78845
child 1747
df4f44800923
equal deleted inserted replaced
1740:ce4f0769b4b2 1741:4c43e51433ba
115 * 115 *
116 * @param method the method being documented. 116 * @param method the method being documented.
117 * @return a content object for the signature 117 * @return a content object for the signature
118 */ 118 */
119 public Content getSignature(MethodDoc method) { 119 public Content getSignature(MethodDoc method) {
120 writer.displayLength = 0;
121 Content pre = new HtmlTree(HtmlTag.PRE); 120 Content pre = new HtmlTree(HtmlTag.PRE);
122 writer.addAnnotationInfo(method, pre); 121 writer.addAnnotationInfo(method, pre);
123 addModifiers(method, pre); 122 addModifiers(method, pre);
124 addTypeParameters(method, pre); 123 addTypeParameters(method, pre);
125 addReturnType(method, pre); 124 addReturnType(method, pre);
127 Content methodName = new StringContent(method.name()); 126 Content methodName = new StringContent(method.name());
128 writer.addSrcLink(method, methodName, pre); 127 writer.addSrcLink(method, methodName, pre);
129 } else { 128 } else {
130 addName(method.name(), pre); 129 addName(method.name(), pre);
131 } 130 }
132 addParameters(method, pre); 131 int indent = pre.charCount();
133 addExceptions(method, pre); 132 addParameters(method, pre, indent);
133 addExceptions(method, pre, indent);
134 return pre; 134 return pre;
135 } 135 }
136 136
137 /** 137 /**
138 * {@inheritDoc} 138 * {@inheritDoc}

mercurial