Skip to content

Commit

Permalink
Added method with JsonValue annotation and brought enumOuterClass.qut…
Browse files Browse the repository at this point in the history
…e more in line with enumClass.qute that has the very same method, removed JsonValue annotation on toString method.
  • Loading branch information
DennisGyldendahlJensen committed Oct 17, 2023
1 parent 45688a4 commit 772567b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ import java.util.EnumSet;
this.value = value;
}

@com.fasterxml.jackson.annotation.JsonValue
public {#if e.isContainer}{e.items.dataType}{#else}{e.dataType}{/if} value() {
return value;
}

@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
Expand Down

0 comments on commit 772567b

Please sign in to comment.