From a3174c427c4d87429254093f4f3cf495fcdffbaa Mon Sep 17 00:00:00 2001
From: Alexander Diewald <diewald@fortiss.org>
Date: Tue, 23 Apr 2019 15:51:40 +0200
Subject: [PATCH] Correct the isAssignableFromAny method.

Issue-Ref: 3708
Issue-Url: https://af3-developer.fortiss.org/issues/3708
Signed-off-by: Alexander Diewald <diewald@fortiss.org>
---
 .../src/org/fortiss/tooling/common/util/.ratings                | 2 +-
 .../src/org/fortiss/tooling/common/util/LambdaUtils.java        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/.ratings b/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/.ratings
index f558f34c5..3fcfdb4d5 100644
--- a/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/.ratings
+++ b/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/.ratings
@@ -1 +1 @@
-LambdaUtils.java 6fed9bb62eba3f7af6ebd7821fb22df6fcc507f8 YELLOW
+LambdaUtils.java 17f238f2778355ca619994d154c34a2a6bb15b86 YELLOW
diff --git a/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/LambdaUtils.java b/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/LambdaUtils.java
index 6fed9bb62..17f238f27 100644
--- a/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/LambdaUtils.java
+++ b/org.fortiss.tooling.common/src/org/fortiss/tooling/common/util/LambdaUtils.java
@@ -311,7 +311,7 @@ public class LambdaUtils {
 	 * @return see above.
 	 */
 	public static boolean isAssignableFromAny(Collection<Class<?>> types, Class<?> testType) {
-		return types.stream().anyMatch(t -> t.isAssignableFrom(testType));
+		return types.stream().anyMatch(t -> testType.isAssignableFrom(t));
 	}
 
 	/**
-- 
GitLab