File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
deployment/src/main/resources/templates/libraries/microprofile Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3131 }
3232
3333 @com.fasterxml.jackson.annotation.JsonCreator
34- public static {e.enumName} fromValue (String v) {
34+ public static {e.enumName} fromString (String v) {
3535 for ({#if e.enumName}{e.enumName}{#else}{e.classname}{/if} b : values) {
3636 if (String.valueOf(b.value).equalsIgnoreCase(v)) {
3737 return b;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import java.util.EnumSet;
2828 }
2929
3030 @JsonCreator
31- public static {#if e.datatypeWithEnum}{e.datatypeWithEnum}{#else}{e.classname}{/if} fromValue (String text) {
31+ public static {#if e.datatypeWithEnum}{e.datatypeWithEnum}{#else}{e.classname}{/if} fromString (String text) {
3232 for ({#if e.datatypeWithEnum}{e.datatypeWithEnum}{#else}{e.classname}{/if} b : values) {
3333 if (String.valueOf(b.value).equalsIgnoreCase(text)) {
3434 return b;
You can’t perform that action at this time.
0 commit comments