groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: minor refactor to aid when debugging AST
Date Fri, 22 Sep 2017 05:11:10 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 145cda8d4 -> c2cace44f


minor refactor to aid when debugging AST


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/c2cace44
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/c2cace44
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/c2cace44

Branch: refs/heads/GROOVY_2_5_X
Commit: c2cace44f1b94993d8a9e3de96fced1a04e8b0bc
Parents: 145cda8
Author: paulk <paulk@asert.com.au>
Authored: Fri Sep 22 14:56:38 2017 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Fri Sep 22 15:10:57 2017 +1000

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/ast/MethodNode.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/c2cace44/src/main/org/codehaus/groovy/ast/MethodNode.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/ast/MethodNode.java b/src/main/org/codehaus/groovy/ast/MethodNode.java
index 7239a86..0f97ab6 100644
--- a/src/main/org/codehaus/groovy/ast/MethodNode.java
+++ b/src/main/org/codehaus/groovy/ast/MethodNode.java
@@ -190,7 +190,7 @@ public class MethodNode extends AnnotatedNode implements Opcodes {
     }
 
     public String toString() {
-        return "MethodNode@" + hashCode() + "[" + getTypeDescriptor() + "]";
+        return "MethodNode@" + hashCode() + "[" + getDeclaringClass().getName() + "#" + getTypeDescriptor()
+ "]";
     }
 
     public void setReturnType(ClassNode returnType) {


Mime
View raw message