DATACMNS-1828 - Revert custom collection component type lookup.
We now report the first generic parameter for collection-like types to use the behavior that was previously in place. We will address the issues resulting of the intent to report the correct component type of Iterable in a later change.
This commit is contained in:
@@ -163,10 +163,6 @@ class ParameterizedTypeInformation<T> extends ParentTypeAwareTypeInformation<T>
|
||||
return getRequiredSuperTypeInformation(Map.class).getComponentType();
|
||||
}
|
||||
|
||||
if (isCollectionLike() && !getType().getPackage().getName().startsWith("java.")) {
|
||||
return getRequiredSuperTypeInformation(Iterable.class).getComponentType();
|
||||
}
|
||||
|
||||
return createInfo(type.getActualTypeArguments()[0]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user