Skip to content
Snippets Groups Projects
Commit a3174c42 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Correct the isAssignableFromAny method.

parent 2d0b2246
No related branches found
No related tags found
1 merge request!513708 - Part 2
LambdaUtils.java 6fed9bb62eba3f7af6ebd7821fb22df6fcc507f8 YELLOW
LambdaUtils.java 17f238f2778355ca619994d154c34a2a6bb15b86 YELLOW
......@@ -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));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment