HHH-18502 Fix compiler method selection for #in(Collection<?> values)

This commit is contained in:
Marco Belladelli 2024-08-21 09:40:13 +02:00
parent 97f9402edb
commit b61ba10afd
2 changed files with 4 additions and 2 deletions

View File

@ -196,7 +196,8 @@ public class SqmFieldLiteral<T> implements SqmExpression<T>, SqmExpressible<T>,
@Override @Override
public SqmPredicate in(Collection<?> values) { public SqmPredicate in(Collection<?> values) {
return nodeBuilder().in( this, values ); //noinspection unchecked
return nodeBuilder().in( this, (Collection<T>) values );
} }
@Override @Override

View File

@ -633,7 +633,8 @@ public class SqmSubQuery<T> extends AbstractSqmSelectQuery<T> implements SqmSele
@Override @Override
public SqmInPredicate<?> in(Collection<?> values) { public SqmInPredicate<?> in(Collection<?> values) {
return nodeBuilder().in( this, values ); //noinspection unchecked
return nodeBuilder().in( this, (Collection<T>) values );
} }
@Override @Override