Skip to content

Commit

Permalink
Improve type inference based matching
Browse files Browse the repository at this point in the history
Restores method pair mapping in class
org.hibernate.search.mapper.orm.loading.impl.HibernateOrmEntityIdEntityLoadingStrategy
hibernate/hibernate-search@6133c60
  • Loading branch information
tsantalis committed Dec 22, 2024
1 parent 70c21ee commit 01e1d29
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,12 @@ private static boolean collectionMatch(UMLType parameterType, UMLType type) {
if(typeArgument.toString().length() == 1 && Character.isUpperCase(typeArgument.toString().charAt(0))) {
return true;
}
if(type.getTypeArguments().size() == 1) {
UMLType typeArgument2 = type.getTypeArguments().get(0);
if(typeArgument2.getClassType().equals(typeArgument.getClassType())) {
return true;
}
}
}
}
}
Expand Down

0 comments on commit 01e1d29

Please sign in to comment.