Skip to content

Commit 4fda42a

Browse files
committed
Simplify test
1 parent 643f15a commit 4fda42a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/test/java/com/fasterxml/jackson/dataformat/xml/deser/EnumDeser682Test.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,13 @@ static enum Country {
1111
ITALY("Italy"),
1212
NETHERLANDS("Netherlands");
1313

14-
private String value;
14+
@JsonValue
15+
final String value;
1516

1617
Country(String value) {
1718
this.value = value;
1819
}
1920

20-
@JsonValue
21-
public String getValue() {
22-
return value;
23-
}
24-
25-
@Override
26-
public String toString() {
27-
return String.valueOf(value);
28-
}
29-
3021
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
3122
public static Country fromValue(String value) {
3223
for (Country b : Country.values()) {

0 commit comments

Comments
 (0)