Javadoc bug: @link can't handle Generics “<>”

后端 未结 3 1192
南笙
南笙 2020-12-15 15:41

Consider a static method in a class, which I have documented it using javadoc:

/**
 * Description here.
 *
 * @param         


        
3条回答
  •  醉酒成梦
    2020-12-15 16:12

    Similar to David Conrad solution, you can use the full signature as a link description, using syntax:

    {@link class#method(signature) text-to-display}
    

    Remember to escape < and >. For example:

     {@link #parse(Map, String, String) parse(Map<String, String>, String, String)}
    

提交回复
热议问题