diff --git a/querydsl-codegen/src/main/java/com/querydsl/codegen/DefaultEntitySerializer.java b/querydsl-codegen/src/main/java/com/querydsl/codegen/DefaultEntitySerializer.java index aae22a0f0d..bde085863d 100644 --- a/querydsl-codegen/src/main/java/com/querydsl/codegen/DefaultEntitySerializer.java +++ b/querydsl-codegen/src/main/java/com/querydsl/codegen/DefaultEntitySerializer.java @@ -407,7 +407,7 @@ protected void introFactoryMethods(CodeWriter writer, final EntityType model) th for (Constructor c : model.getConstructors()) { // begin if (!localName.equals(genericName)) { - writer.suppressWarnings(UNCHECKED); + writer.suppressWarnings(UNCHECKED, "this-escape"); } Type returnType = new ClassType(ConstructorExpression.class, model); final boolean asExpr = sizes.add(c.getParameters().size());