polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject zest-java git commit: ZEST-118; Fixed that Classes.typesOf() also returns the inparameter.
Date Thu, 27 Aug 2015 01:11:54 GMT
Repository: zest-java
Updated Branches:
  refs/heads/develop 987eb0e60 -> 198fd4a81


ZEST-118; Fixed that Classes.typesOf() also returns the inparameter.


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/198fd4a8
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/198fd4a8
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/198fd4a8

Branch: refs/heads/develop
Commit: 198fd4a813050491f6d21b8270755ab3aa8bd61b
Parents: 987eb0e
Author: Niclas Hedhman <niclas@hedhman.org>
Authored: Thu Aug 27 09:11:40 2015 +0800
Committer: Niclas Hedhman <niclas@hedhman.org>
Committed: Thu Aug 27 09:11:40 2015 +0800

----------------------------------------------------------------------
 core/api/src/main/java/org/apache/zest/api/util/Classes.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/198fd4a8/core/api/src/main/java/org/apache/zest/api/util/Classes.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/apache/zest/api/util/Classes.java b/core/api/src/main/java/org/apache/zest/api/util/Classes.java
index 7bc6f67..19180cb 100644
--- a/core/api/src/main/java/org/apache/zest/api/util/Classes.java
+++ b/core/api/src/main/java/org/apache/zest/api/util/Classes.java
@@ -196,7 +196,8 @@ public final class Classes
         }
         else
         {
-            return Stream.of(type).flatMap( CLASS_HIERARCHY ).flatMap( INTERFACES_OF ).flatMap(
CLASS_HIERARCHY );
+            return concat( Stream.of( clazz ),
+                           Stream.of( type ).flatMap( CLASS_HIERARCHY ).flatMap( INTERFACES_OF
));
         }
     };
 


Mime
View raw message