src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/MethodWriterImpl.java
equal
deleted
inserted
replaced
138 * @param method the method being documented. |
138 * @param method the method being documented. |
139 * @return a content object for the signature |
139 * @return a content object for the signature |
140 */ |
140 */ |
141 @Override |
141 @Override |
142 public Content getSignature(ExecutableElement method) { |
142 public Content getSignature(ExecutableElement method) { |
143 Content pre = new HtmlTree(HtmlTag.PRE); |
143 HtmlTree pre = new HtmlTree(HtmlTag.PRE); |
|
144 pre.setStyle(HtmlStyle.methodSignature); |
144 writer.addAnnotationInfo(method, pre); |
145 writer.addAnnotationInfo(method, pre); |
145 int annotationLength = pre.charCount(); |
146 int annotationLength = pre.charCount(); |
146 addModifiers(method, pre); |
147 addModifiers(method, pre); |
147 addTypeParameters(method, pre); |
148 addTypeParameters(method, pre); |
148 addReturnType(method, pre); |
149 addReturnType(method, pre); |