groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: GROOVY-9316: Improved toString for AnnotationNode (closes #1102)
Date Sat, 23 Nov 2019 22:00:56 GMT
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 e71eee4  GROOVY-9316: Improved toString for AnnotationNode (closes #1102)
e71eee4 is described below

commit e71eee4b6f915fa8c655439afe2061d1205d8ca5
Author: Paul King <paulk@asert.com.au>
AuthorDate: Sat Nov 23 22:02:22 2019 +1000

    GROOVY-9316: Improved toString for AnnotationNode (closes #1102)
---
 src/main/java/org/codehaus/groovy/ast/AnnotationNode.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/main/java/org/codehaus/groovy/ast/AnnotationNode.java b/src/main/java/org/codehaus/groovy/ast/AnnotationNode.java
index 1b8f9fa..8522036 100644
--- a/src/main/java/org/codehaus/groovy/ast/AnnotationNode.java
+++ b/src/main/java/org/codehaus/groovy/ast/AnnotationNode.java
@@ -193,6 +193,11 @@ public class AnnotationNode extends ASTNode {
     }
 
     @Override
+    public String toString() {
+        return super.toString() + "[" + getText() + "]";
+    }
+
+    @Override
     public String getText() {
         StringBuilder memberText = new StringBuilder();
         if (members != null) {


Mime
View raw message