Skip to content

Commit 1d146da

Browse files
committed
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.
1 parent 9fddd40 commit 1d146da

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/org/springframework/data/util/ParameterizedTypeInformation.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ protected TypeInformation<?> doGetComponentType() {
163163
return getRequiredSuperTypeInformation(Map.class).getComponentType();
164164
}
165165

166-
if (isCollectionLike() && !getType().getPackage().getName().startsWith("java.")) {
167-
return getRequiredSuperTypeInformation(Iterable.class).getComponentType();
168-
}
169-
170166
return createInfo(type.getActualTypeArguments()[0]);
171167
}
172168

0 commit comments

Comments
 (0)