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:10:44 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X e6b62dfa1 -> ef7173c2a


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/ef7173c2
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/ef7173c2
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/ef7173c2

Branch: refs/heads/GROOVY_2_6_X
Commit: ef7173c2a78a2b3fe922b2a00ac9a28e1d577d32
Parents: e6b62df
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:26 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/ef7173c2/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 e493071..a43286f 100644
--- a/src/main/org/codehaus/groovy/ast/MethodNode.java
+++ b/src/main/org/codehaus/groovy/ast/MethodNode.java
@@ -192,7 +192,7 @@ public class MethodNode extends AnnotatedNode implements Opcodes, GroovydocHolde
     }
 
     public String toString() {
-        return "MethodNode@" + hashCode() + "[" + getTypeDescriptor() + "]";
+        return "MethodNode@" + hashCode() + "[" + getDeclaringClass().getName() + "#" + getTypeDescriptor()
+ "]";
     }
 
     public void setReturnType(ClassNode returnType) {


Mime
View raw message