Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D9328200B7E for ; Tue, 23 Aug 2016 04:15:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D772A160AB3; Tue, 23 Aug 2016 02:15:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0A911160ABC for ; Tue, 23 Aug 2016 04:15:57 +0200 (CEST) Received: (qmail 10434 invoked by uid 500); 23 Aug 2016 02:15:57 -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 10424 invoked by uid 99); 23 Aug 2016 02:15:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2016 02:15:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E8D8FE0230; Tue, 23 Aug 2016 02:15:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jwagenleitner@apache.org To: commits@groovy.apache.org Date: Tue, 23 Aug 2016 02:15:56 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/5] groovy git commit: findbugs: un-callable method in anonymous class (closes #389) archived-at: Tue, 23 Aug 2016 02:15:59 -0000 Repository: groovy Updated Branches: refs/heads/master f175e34b5 -> b914a7447 findbugs: un-callable method in anonymous class (closes #389) Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/454158d7 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/454158d7 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/454158d7 Branch: refs/heads/master Commit: 454158d7c0008900985dc3f2644e6d346a4491b4 Parents: 4f328a1 Author: John Wagenleitner Authored: Sun Aug 21 16:14:55 2016 -0700 Committer: John Wagenleitner Committed: Mon Aug 22 19:11:09 2016 -0700 ---------------------------------------------------------------------- src/main/groovy/lang/MetaClassImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/454158d7/src/main/groovy/lang/MetaClassImpl.java ---------------------------------------------------------------------- diff --git a/src/main/groovy/lang/MetaClassImpl.java b/src/main/groovy/lang/MetaClassImpl.java index e5a0f92..b32763b 100644 --- a/src/main/groovy/lang/MetaClassImpl.java +++ b/src/main/groovy/lang/MetaClassImpl.java @@ -494,10 +494,13 @@ public class MetaClassImpl implements MetaClass, MutableMetaClass { class MOPIter extends MethodIndexAction { boolean useThis; - public boolean skipClass(CachedClass clazz) { - return !useThis && clazz == theCachedClass; + + @Override + public boolean skipClass(Class clazz) { + return !useThis && clazz == theClass; } + @Override public void methodNameAction(Class clazz, MetaMethodIndex.Entry e) { if (useThis) { if (e.methods == null)