src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/MethodWriterImpl.java
changeset 51127 c2e676c2cf7b
parent 50167 cc705c956798
child 51260 b7a307084247
equal deleted inserted replaced
51126:a25c48c0a1ab 51127:c2e676c2cf7b
   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);