Skip to content
Permalink
Browse files
arrays inherit Object for CV computation purposes
  • Loading branch information
mbenson committed Oct 16, 2018
1 parent c3bbf68 commit 0d76ca3de78c84edb27a9cb51054a7e6231281a8
Showing 1 changed file with 4 additions and 3 deletions.
@@ -201,10 +201,11 @@ private Stream<Class<?>> walkHierarchy() {
final TypeWrapper w = new TypeWrapper(Reflection.primitiveToWrapper(validatedType));
Stream.Builder<Class<?>> hierarchy = Stream.builder();
Reflection.hierarchy(w.componentType, Interfaces.INCLUDE).forEach(hierarchy);
if (validatedType.isInterface()) {
hierarchy.accept(Object.class);
final Stream<Class<?>> result = hierarchy.build().map(w::unwrapArrayComponentType);
if (validatedType.isInterface() || validatedType.isArray()) {
return Stream.concat(result, Stream.of(Object.class));
}
return hierarchy.build().map(w::unwrapArrayComponentType);
return result;
}

private boolean isComposed() {

0 comments on commit 0d76ca3

Please sign in to comment.