Skip to content

Commit

Permalink
fix of issue #7386 (#7401)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiofachechi authored and wing328 committed Jan 20, 2018
1 parent a61d232 commit 6bf84d5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ public enum {{datatypeWithEnum}} {
}

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

@JsonCreator
public static {{datatypeWithEnum}} fromValue(String v) {
for ({{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {
if (String.valueOf(b.value).equals(v)) {
Expand Down

0 comments on commit 6bf84d5

Please # to comment.