Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 61284355f -> d862bdbdc


formatting


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 2c9197fa2fa57c4cfc46e55d97ebb8b876b559c8
Parents: 6128435
Author: Paul King <pa...@asert.com.au>
Authored: Thu Apr 12 18:50:39 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Thu Apr 12 23:42:01 2018 +1000

----------------------------------------------------------------------
 src/main/java/org/codehaus/groovy/control/GenericsVisitor.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/2c9197fa/src/main/java/org/codehaus/groovy/control/GenericsVisitor.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/control/GenericsVisitor.java 
b/src/main/java/org/codehaus/groovy/control/GenericsVisitor.java
index 36ef5ea..53885cf 100644
--- a/src/main/java/org/codehaus/groovy/control/GenericsVisitor.java
+++ b/src/main/java/org/codehaus/groovy/control/GenericsVisitor.java
@@ -30,8 +30,6 @@ import org.codehaus.groovy.ast.expr.ConstructorCallExpression;
 /**
  * class used to verify correct usage of generics in
  * class header (class and superclass declaration)
- *
- * @author Jochen Theodorou
  */
 public class GenericsVisitor extends ClassCodeVisitorSupport {
     private final SourceUnit source;
@@ -48,7 +46,7 @@ public class GenericsVisitor extends ClassCodeVisitorSupport {
     public void visitClass(ClassNode node) {
         boolean error = checkWildcard(node);
         if (error) return;
-        boolean isAnon = node instanceof InnerClassNode && 
((InnerClassNode)node).isAnonymous();
+        boolean isAnon = node instanceof InnerClassNode && ((InnerClassNode) 
node).isAnonymous();
         checkGenericsUsage(node.getUnresolvedSuperClass(false), 
node.getSuperClass(), isAnon ? true : null);
         ClassNode[] interfaces = node.getInterfaces();
         for (ClassNode anInterface : interfaces) {
@@ -67,7 +65,7 @@ public class GenericsVisitor extends ClassCodeVisitorSupport {
     @Override
     public void visitConstructorCallExpression(ConstructorCallExpression call) 
{
         ClassNode type = call.getType();
-        boolean isAnon = type instanceof InnerClassNode && 
((InnerClassNode)type).isAnonymous();
+        boolean isAnon = type instanceof InnerClassNode && ((InnerClassNode) 
type).isAnonymous();
         checkGenericsUsage(type, type.redirect(), isAnon);
     }
 

Reply via email to