File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/com/fasterxml/jackson/databind/ser/enums Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77
88import com .fasterxml .jackson .annotation .JsonFormat ;
99import com .fasterxml .jackson .annotation .JsonInclude ;
10-
10+ import com . fasterxml . jackson . annotation . JsonPropertyOrder ;
1111import com .fasterxml .jackson .core .JsonProcessingException ;
1212import com .fasterxml .jackson .core .type .TypeReference ;
1313import com .fasterxml .jackson .databind .ObjectMapper ;
1818// [databind#4564] Fix Enum-asJSON-Object serialization with self as field.
1919public class EnumAsFormatObject4564Test
2020{
21-
2221 @ JsonFormat (shape = JsonFormat .Shape .OBJECT )
2322 @ JsonInclude (JsonInclude .Include .NON_NULL )
23+ @ JsonPropertyOrder ({"label" , "sublevel" })
2424 public enum Level {
2525 LEVEL1 ("level1" ),
2626 LEVEL2 ("level2" ),
You can’t perform that action at this time.
0 commit comments