Abnaxos / markdown-doclet

A Doclet that allows the use of Markdown in JavaDoc comments.
GNU General Public License v3.0
319 stars 40 forks source link

(#22) Support generic type parameters on methods #46

Closed slovdahl closed 9 years ago

slovdahl commented 9 years ago

The com.sun.tools.javadoc.ParamTagImpl returns the parameter name without the < and > signs, therefore they need to be re-added.

ParamTagImpl constructor confirming the behaviour:

ParamTagImpl(DocImpl holder, String name, String text) {
    super(holder, name, text);
    String[] sa = this.divideAtWhite();
    Matcher m = typeParamRE.matcher(sa[0]);
    this.isTypeParameter = m.matches();
    this.parameterName = this.isTypeParameter?m.group(1):sa[0];
    this.parameterComment = sa[1];
}