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:
Mark Paluch
2020-11-06 16:08:06 +01:00
parent 9fddd402f7
commit 1d146da048

View File

@@ -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]);
}