Skip to content

Commit

Permalink
rename isEmpty => empty to avoid serialization(!) (fix subclass of Map)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhannes committed Sep 1, 2024
1 parent 7e7b714 commit edb99e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public final class JwtPayloadDto extends HashMap<String, List> {
private String pid = null;

public boolean empty() {
return super.empty()
return super.isEmpty()
&& getName() == null
&& getEmail() == null
&& getOrgId() == null
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/JavaLombok/modelGeneric.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public {{#if children}}sealed{{else}}final{{/if}} class {{classname}}

public boolean empty() {
{{#if parent}}
return super.empty()
return {{#if isAdditionalPropertiesTrue}}super.isEmpty(){{else}}super.empty(){{/if}}
{{#interfaceModels}}
{{#if isMixin}}
&& is{{name}}Empty()
Expand Down

0 comments on commit edb99e5

Please sign in to comment.