You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2018/08/29 13:22:26 UTC

[isis] 01/03: ISIS-1841: fix bug in _Reflect.streamAllMethods

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit f00ec3b4e4f4fc73495da76624af2264e56022fe
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Aug 29 12:48:41 2018 +0200

    ISIS-1841: fix bug in _Reflect.streamAllMethods
---
 .../main/java/org/apache/isis/commons/internal/reflection/_Reflect.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/commons/src/main/java/org/apache/isis/commons/internal/reflection/_Reflect.java b/core/commons/src/main/java/org/apache/isis/commons/internal/reflection/_Reflect.java
index 3ff0b6a..cf4db82 100644
--- a/core/commons/src/main/java/org/apache/isis/commons/internal/reflection/_Reflect.java
+++ b/core/commons/src/main/java/org/apache/isis/commons/internal/reflection/_Reflect.java
@@ -132,7 +132,7 @@ public final class _Reflect {
      */
     public static Stream<Method> streamAllMethods(@Nullable Class<?> type) {
         return streamTypeHierarchy(type)
-                .filter(Object.class::equals) // do not process Object class.
+                .filter(t->!t.equals(Object.class)) // do not process Object class.
                 .flatMap(_Reflect::streamMethods);
     }