Skip to content

Commit 88e69f8

Browse files
committed
Merge branch '2.x' into 3.x
2 parents 472b7a0 + a265d3c commit 88e69f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/tools/jackson/databind/ser/enums/EnumAsFormatObject4564Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import com.fasterxml.jackson.annotation.JsonFormat;
99
import com.fasterxml.jackson.annotation.JsonInclude;
10+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
1011

1112
import tools.jackson.databind.ObjectMapper;
1213
import tools.jackson.databind.json.JsonMapper;
@@ -16,9 +17,9 @@
1617
// [databind#4564] Fix Enum-asJSON-Object serialization with self as field.
1718
public class EnumAsFormatObject4564Test
1819
{
19-
2020
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
2121
@JsonInclude(JsonInclude.Include.NON_NULL)
22+
@JsonPropertyOrder({"label", "sublevel"})
2223
public enum Level {
2324
LEVEL1("level1"),
2425
LEVEL2("level2"),

0 commit comments

Comments
 (0)