This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f3c30248d Groovydoc template formatting tweak to actually have 
intended fallback.
5f3c30248d is described below

commit 5f3c30248d0721bef98656bae3dd37cc05c36233
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Jan 13 16:04:10 2024 +1000

    Groovydoc template formatting tweak to actually have intended fallback.
    
    But we really need to work out why annotation type for enum constant isn't 
being resolved.
---
 .../tools/groovydoc/gstringTemplates/classLevel/classDocName.html       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/subprojects/groovy-groovydoc/src/main/resources/org/codehaus/groovy/tools/groovydoc/gstringTemplates/classLevel/classDocName.html
 
b/subprojects/groovy-groovydoc/src/main/resources/org/codehaus/groovy/tools/groovydoc/gstringTemplates/classLevel/classDocName.html
index 67937207f2..6bb6aeb430 100644
--- 
a/subprojects/groovy-groovydoc/src/main/resources/org/codehaus/groovy/tools/groovydoc/gstringTemplates/classLevel/classDocName.html
+++ 
b/subprojects/groovy-groovydoc/src/main/resources/org/codehaus/groovy/tools/groovydoc/gstringTemplates/classLevel/classDocName.html
@@ -71,7 +71,7 @@
         (t.isStatic()?"static&nbsp;":"")
     }
     def annotations = { t, sepChar ->
-        t.annotations() ? t.annotations().collect{ 
it.isTypeAvailable()?'@'+linkable(it.type().typeName())+it.description():it.description()}.join(sepChar)
 + sepChar : ''
+        t.annotations() ? t.annotations().collect{ 
it.isTypeAvailable()?'@'+linkable(it.type().typeName())+it.description():'@'+it.name()+it.description()}.join(sepChar)
 + sepChar : ''
     }
     def elementTypes = [
         "required":"true",

Reply via email to