groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 01/01: GROOVY-9236: Avoid unnecessary resolving
Date Thu, 29 Aug 2019 06:49:32 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun1106-patch-1
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 605d6d11e2d120eab1b3d414a1308848583c778d
Author: Daniel.Sun <sunlan@apache.org>
AuthorDate: Thu Aug 29 14:49:25 2019 +0800

    GROOVY-9236: Avoid unnecessary resolving
---
 src/main/java/org/codehaus/groovy/control/ResolveVisitor.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java b/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
index 9f6cf24..a979371 100644
--- a/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
+++ b/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
@@ -462,12 +462,12 @@ public class ResolveVisitor extends ClassCodeExpressionTransformer {
             return true;
         }
 
-        return resolveNestedClass(type) ||
+        return  resolveNestedClass(type) ||
                 resolveFromModule(type, testModuleImports) ||
                 resolveFromCompileUnit(type) ||
+                resolveToOuter(type) ||
                 resolveFromDefaultImports(type, testDefaultImports) ||
-                resolveFromStaticInnerClasses(type, testStaticInnerClasses) ||
-                resolveToOuter(type);
+                resolveFromStaticInnerClasses(type, testStaticInnerClasses);
     }
 
     private boolean resolveNestedClass(ClassNode type) {


Mime
View raw message