You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/02/22 01:24:28 UTC

[groovy] branch danielsun/tweak-resolving-further created (now 2f608f3)

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a change to branch danielsun/tweak-resolving-further
in repository https://gitbox.apache.org/repos/asf/groovy.git.


      at 2f608f3  GROOVY-9416: Avoid unnecessary looking up non default import classes when resolving types

This branch includes the following new commits:

     new 2f608f3  GROOVY-9416: Avoid unnecessary looking up non default import classes when resolving types

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[groovy] 01/01: GROOVY-9416: Avoid unnecessary looking up non default import classes when resolving types

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun/tweak-resolving-further
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 2f608f3faa0e91731be8df7b007ea09b310b03ed
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Feb 22 09:24:16 2020 +0800

    GROOVY-9416: Avoid unnecessary looking up non default import classes when resolving types
---
 src/main/java/org/codehaus/groovy/control/ResolveVisitor.java | 3 ---
 1 file changed, 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 4395dc8..d186284 100644
--- a/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
+++ b/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
@@ -621,9 +621,6 @@ public class ResolveVisitor extends ClassCodeExpressionTransformer {
                 }
             }
 
-            if (resolveFromDefaultImports(type, DEFAULT_IMPORTS)) {
-                return true;
-            }
             if (BIGINTEGER_STR.equals(typeName)) {
                 type.setRedirect(ClassHelper.BigInteger_TYPE);
                 return true;