groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emil...@apache.org
Subject [groovy] branch GROOVY_2_4_X updated: remove redirect from lower bound
Date Sun, 15 Dec 2019 04:49:16 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/GROOVY_2_4_X by this push:
     new 2ce0a0b  remove redirect from lower bound
2ce0a0b is described below

commit 2ce0a0b911a2010c3aa646b2ac803c0705ba4f24
Author: Eric Milles <eric.milles@thomsonreuters.com>
AuthorDate: Sat Dec 14 22:49:11 2019 -0600

    remove redirect from lower bound
---
 src/main/org/codehaus/groovy/ast/ClassNode.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/org/codehaus/groovy/ast/ClassNode.java b/src/main/org/codehaus/groovy/ast/ClassNode.java
index eec448c..9838d58 100644
--- a/src/main/org/codehaus/groovy/ast/ClassNode.java
+++ b/src/main/org/codehaus/groovy/ast/ClassNode.java
@@ -1202,12 +1202,12 @@ public class ClassNode extends AnnotatedNode implements Opcodes {
                 }
                 if (i + 1 < genericsType.getUpperBounds().length) ret.append(" & ");
             }
-        } else if (genericsType.getLowerBound() !=null) {
+        } else if (genericsType.getLowerBound() != null) {
             ClassNode classNode = genericsType.getLowerBound();
             if (classNode.equals(this)) {
                 ret.append(" super ").append(classNode.getName());
             } else {
-                ret.append(" super ").append(classNode);
+                ret.append(" super ").append(classNode.toString(false));
             }
         }
         return ret.toString();


Mime
View raw message