From 1d146da0485428e13ca89d5383ee13db9860d3c3 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Fri, 6 Nov 2020 16:08:06 +0100 Subject: [PATCH] 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. --- .../data/util/ParameterizedTypeInformation.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java b/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java index 233a7eadf..be5e38471 100644 --- a/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java +++ b/src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java @@ -163,10 +163,6 @@ class ParameterizedTypeInformation extends ParentTypeAwareTypeInformation return getRequiredSuperTypeInformation(Map.class).getComponentType(); } - if (isCollectionLike() && !getType().getPackage().getName().startsWith("java.")) { - return getRequiredSuperTypeInformation(Iterable.class).getComponentType(); - } - return createInfo(type.getActualTypeArguments()[0]); }