Skip to content

Commit

Permalink
Suppress "this-escape" warning in auto-generated entities (#388) (#408)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Skorupowski <[email protected]>
(cherry picked from commit f4018e7)
  • Loading branch information
Plondrein authored Apr 25, 2024
1 parent 388c54b commit d597eb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit d597eb7

Please sign in to comment.