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 e9231c01ed
commit b26977358a
2 changed files with 4 additions and 2 deletions

View File

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

View File

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