Skip to content

Commit

Permalink
remove serialVersionUID from constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bda618 committed Dec 17, 2024
1 parent 42cad3d commit 011c294
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ public static <T> T restrictEntity(@Nonnull Object entity, Class<T> clazz) {
try {
Object[] args =
allFields.stream()
// New versions of graphql.codegen generate serialVersionUID
// We need to filter serialVersionUID out because serialVersionUID is
// never part of the entity type constructor
.filter(field -> !field.getName().contains("serialVersionUID"))
.map(
field -> {
// properties are often not required but only because
Expand Down

0 comments on commit 011c294

Please sign in to comment.