Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X d3d75e514 -> 43706262b


formatting


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

Branch: refs/heads/GROOVY_2_5_X
Commit: 43706262b33b37ea4006e81027e9e6a1fe1d9efa
Parents: d3d75e5
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 18:50:39 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/43706262/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