We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 643f15a commit 4fda42aCopy full SHA for 4fda42a
src/test/java/com/fasterxml/jackson/dataformat/xml/deser/EnumDeser682Test.java
@@ -11,22 +11,13 @@ static enum Country {
11
ITALY("Italy"),
12
NETHERLANDS("Netherlands");
13
14
- private String value;
+ @JsonValue
15
+ final String value;
16
17
Country(String value) {
18
this.value = value;
19
}
20
- @JsonValue
21
- public String getValue() {
22
- return value;
23
- }
24
-
25
- @Override
26
- public String toString() {
27
- return String.valueOf(value);
28
29
30
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
31
public static Country fromValue(String value) {
32
for (Country b : Country.values()) {
0 commit comments