From commits-return-10453-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Fri Jan 3 08:24:22 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 570B018061A for ; Fri, 3 Jan 2020 09:24:22 +0100 (CET) Received: (qmail 45655 invoked by uid 500); 3 Jan 2020 08:24:21 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 45646 invoked by uid 99); 3 Jan 2020 08:24:21 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2020 08:24:21 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 5B0808D80D; Fri, 3 Jan 2020 08:24:21 +0000 (UTC) Date: Fri, 03 Jan 2020 08:24:21 +0000 To: "commits@groovy.apache.org" Subject: [groovy] branch master updated: Trivial refactoring: remove redundant code MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <157803986123.18463.11918189272551144127@gitbox.apache.org> From: sunlan@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: groovy X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 8b379d1278c034e28d9daff3a4ad0ef4b8e77b68 X-Git-Newrev: 816331a9cabf4e25ac10497087bfdd4a865fc7bd X-Git-Rev: 816331a9cabf4e25ac10497087bfdd4a865fc7bd X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. sunlan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git The following commit(s) were added to refs/heads/master by this push: new 816331a Trivial refactoring: remove redundant code 816331a is described below commit 816331a9cabf4e25ac10497087bfdd4a865fc7bd Author: Daniel.Sun AuthorDate: Fri Jan 3 15:53:14 2020 +0800 Trivial refactoring: remove redundant code --- 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 {