Skip to content

Commit 240300c

Browse files
Added method with JsonValue annotation and brought enumOuterClass.qute more in line with enumClass.qute that has the very same method, removed JsonValue annotation on toString method. (#533)
1 parent f7cec7e commit 240300c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deployment/src/main/resources/templates/libraries/microprofile/enumOuterClass.qute

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ import java.util.EnumSet;
2121
this.value = value;
2222
}
2323

24+
@com.fasterxml.jackson.annotation.JsonValue
25+
public {#if e.isContainer}{e.items.dataType}{#else}{e.dataType}{/if} value() {
26+
return value;
27+
}
28+
2429
@Override
25-
@JsonValue
2630
public String toString() {
2731
return String.valueOf(value);
2832
}

0 commit comments

Comments
 (0)