Skip to content

Commit d597eb7

Browse files
PlondreinDominik Skorupowski
andauthored
Suppress "this-escape" warning in auto-generated entities (#388) (#408)
Co-authored-by: Dominik Skorupowski <[email protected]> (cherry picked from commit f4018e7)
1 parent 388c54b commit d597eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

querydsl-codegen/src/main/java/com/querydsl/codegen/DefaultEntitySerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ protected void introFactoryMethods(CodeWriter writer, final EntityType model) th
407407
for (Constructor c : model.getConstructors()) {
408408
// begin
409409
if (!localName.equals(genericName)) {
410-
writer.suppressWarnings(UNCHECKED);
410+
writer.suppressWarnings(UNCHECKED, "this-escape");
411411
}
412412
Type returnType = new ClassType(ConstructorExpression.class, model);
413413
final boolean asExpr = sizes.add(c.getParameters().size());

0 commit comments

Comments
 (0)