diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmFieldLiteral.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmFieldLiteral.java index 673fdccd48..917c79db79 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmFieldLiteral.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmFieldLiteral.java @@ -196,7 +196,8 @@ public class SqmFieldLiteral implements SqmExpression, SqmExpressible, @Override public SqmPredicate in(Collection values) { - return nodeBuilder().in( this, values ); + //noinspection unchecked + return nodeBuilder().in( this, (Collection) values ); } @Override diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/select/SqmSubQuery.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/select/SqmSubQuery.java index d114170694..8c35e88291 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/select/SqmSubQuery.java +++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/select/SqmSubQuery.java @@ -633,7 +633,8 @@ public class SqmSubQuery extends AbstractSqmSelectQuery implements SqmSele @Override public SqmInPredicate in(Collection values) { - return nodeBuilder().in( this, values ); + //noinspection unchecked + return nodeBuilder().in( this, (Collection) values ); } @Override