Skip to content

Commit

Permalink
Merge pull request #3299 from ebean-orm/feature/3294-warnings
Browse files Browse the repository at this point in the history
#3294 Suppress compiler warnings on generated query bean `filterMany()`
  • Loading branch information
rbygrave authored Dec 21, 2023
2 parents fcbcc53 + b377e1a commit 8ed3b76
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ private void writeStaticAliasClass() {

private void writeAssocClass() {
writer.eol();
writer.append(" /** Association query bean */").eol();
writer.append(" /** Association query bean */").eol();
writer.append(" ").append(Constants.AT_GENERATED).eol();
writer.append(" ").append(Constants.AT_TYPEQUERYBEAN).eol();
if (embeddable) {
Expand All @@ -284,6 +284,7 @@ private void writeAssocClass() {

private void writeAssocFilterMany() {
writer.eol();
writer.append(" @SuppressWarnings({\"unchecked\", \"rawtypes\"})").eol();
writer.append(" public final R filterMany(java.util.function.Consumer<Q%s> apply) {", shortName).eol();
writer.append(" final io.ebean.ExpressionList list = io.ebean.Expr.factory().expressionList();", shortName).eol();
writer.append(" final var qb = new Q%s(list);", shortName).eol();
Expand Down

0 comments on commit 8ed3b76

Please sign in to comment.