groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwagenleit...@apache.org
Subject [2/5] groovy git commit: findbugs: un-callable method in anonymous class (closes #389)
Date Tue, 23 Aug 2016 02:56:14 GMT
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/0a6789d0
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/0a6789d0
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/0a6789d0

Branch: refs/heads/GROOVY_2_4_X
Commit: 0a6789d06cc6451fcfee174ba638c0494f2827ef
Parents: 2551510
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:17:21 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/0a6789d0/src/main/groovy/lang/MetaClassImpl.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/lang/MetaClassImpl.java b/src/main/groovy/lang/MetaClassImpl.java
index 3c49a33..b2c7a0c 100644
--- a/src/main/groovy/lang/MetaClassImpl.java
+++ b/src/main/groovy/lang/MetaClassImpl.java
@@ -497,10 +497,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