diff --git a/querydsl-jpa/src/main/java/com/mysema/query/jpa/JPQLSerializer.java b/querydsl-jpa/src/main/java/com/mysema/query/jpa/JPQLSerializer.java index 94662c237..136fe2bba 100644 --- a/querydsl-jpa/src/main/java/com/mysema/query/jpa/JPQLSerializer.java +++ b/querydsl-jpa/src/main/java/com/mysema/query/jpa/JPQLSerializer.java @@ -413,10 +413,10 @@ public class JPQLSerializer extends SerializerBase { } } - @SuppressWarnings({ "rawtypes", "unchecked" }) private void visitPathInCollection(Class type, Operator operator, List> args) { Path lhs = (Path) args.get(0); + @SuppressWarnings("unchecked") Constant> rhs = (Constant>) args.get(1); if (rhs.getConstant().isEmpty()) { operator = Ops.EQ; @@ -428,7 +428,7 @@ public class JPQLSerializer extends SerializerBase { if (entityType.hasSingleIdAttribute()) { SingularAttribute id = getIdProperty(entityType); // turn lhs into id path - lhs = new PathImpl(id.getJavaType(), lhs, id.getName()); + lhs = new PathImpl(id.getJavaType(), lhs, id.getName()); // turn rhs into id collection Set ids = new HashSet(); for (Object entity : rhs.getConstant()) {