Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.3
-
None
Description
When I have an annotated class, generated groovydoc contains a link to the annotation and appended annotation name just after it as in following screenshot:
After some debugging, I managed to fix the issue by modifying
org/codehaus/groovy/tools/groovydoc/gstringTemplates/classLevel/classDocName.html.annotations()
like this:
def annotations = { t, sepChar -> // t.annotations() ? t.annotations().collect{ it.isTypeAvailable() ? '@' + linkable(it.type().typeName()) + (it.description() - ('@'+it.type().typeName())) : it.description()}.join(sepChar) + sepChar : '' t.annotations() ? t.annotations().collect{ it.isTypeAvailable() ? '@' + linkable(it.type().typeName()) : it.description()}.join(sepChar) + sepChar : '' }