groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch GROOVY_3_0_X updated: Trivial refactoring: remove redundant code
Date Fri, 03 Jan 2020 08:50:26 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push:
     new 27dc01b  Trivial refactoring: remove redundant code
27dc01b is described below

commit 27dc01b0fe48c2dc52e59de338b092681b507a2f
Author: Daniel.Sun <realbluesun@hotmail.com>
AuthorDate: Fri Jan 3 15:53:14 2020 +0800

    Trivial refactoring: remove redundant code
    
    (cherry picked from commit 816331a9cabf4e25ac10497087bfdd4a865fc7bd)
---
 src/main/java/org/codehaus/groovy/vmplugin/v7/Selector.java | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v7/Selector.java b/src/main/java/org/codehaus/groovy/vmplugin/v7/Selector.java
index 663d254..42e6893 100644
--- a/src/main/java/org/codehaus/groovy/vmplugin/v7/Selector.java
+++ b/src/main/java/org/codehaus/groovy/vmplugin/v7/Selector.java
@@ -573,11 +573,6 @@ public abstract class Selector {
                 mc = ((GroovyObject) receiver).getMetaClass();
             } else if (receiver instanceof Class) {
                 Class c = (Class) receiver;
-                ClassLoader cl = c.getClassLoader();
-                try {
-                    Class.forName(c.getName(), true, cl);
-                } catch (ClassNotFoundException ignored) {
-                }
                 mc = GroovySystem.getMetaClassRegistry().getMetaClass(c);
                 this.cache &= !ClassInfo.getClassInfo(c).hasPerInstanceMetaClasses();
             } else {


Mime
View raw message