groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwagenleit...@apache.org
Subject [1/5] groovy git commit: findbugs: un-callable method in anonymous class (closes #389)
Date Tue, 23 Aug 2016 02:15:56 GMT
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 <jwagenleitner@apache.org>
Authored: Sun Aug 21 16:14:55 2016 -0700
Committer: John Wagenleitner <jwagenleitner@apache.org>
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)


Mime
View raw message