Consider a static method in a class, which I have documented it using javadoc:
/**
* Description here.
*
* @param names - The parameters of the impression request.
* @param ids - An intent object to enrich.
* @param prefix - A prefix.
*/
public static void parse(Map<String, String> names, String ids, String prefix)
...
In order to avoid duplicating the description in the overloaded versions of the method, I would like to use a javadoc @link
:
/**
* Overloaded version with default prefix.
* {@link #<parse(Map<String, String>, String, String)> [Text]}
*/
public static void parse(Map<String, String> names, String ids, String prefix)
Which gives the following warning:
@link:illegal character: "60" in "#parseBtCategories(Map<String, String>,
String, String) Text"
ASCII 60 is <
, which is a part of the method signature. It works with Map, String, String)
nut this notation can't distinguish two different types of maps.
This seems to be a known bug. Is there a good workaround?
question from:
https://stackoverflow.com/questions/9482309/javadoc-bug-link-cant-handle-generics 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…