Skip to content

Commit c74abfd

Browse files
committed
Merge remote-tracking branch 'FasterXML/2.19'
2 parents 841556b + 32dbb29 commit c74abfd

File tree

1 file changed

+19
-4
lines changed
  • src/test/kotlin/tools/jackson/module/kotlin/test/github

1 file changed

+19
-4
lines changed

src/test/kotlin/tools/jackson/module/kotlin/test/github/Github464.kt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package tools.jackson.module.kotlin.test.github
22

3+
import com.fasterxml.jackson.annotation.JsonPropertyOrder
34
import tools.jackson.core.JsonGenerator
45
import tools.jackson.databind.ObjectMapper
56
import tools.jackson.databind.ObjectWriter
@@ -39,6 +40,20 @@ class Github464 {
3940
fun <T> getXyzzy() = quux
4041
}
4142

43+
@JsonPropertyOrder(
44+
"foo",
45+
"bar",
46+
"baz",
47+
"qux",
48+
"quux",
49+
"corge",
50+
"grault",
51+
"garply",
52+
"waldo",
53+
"fred",
54+
"plugh",
55+
"xyzzy"
56+
)
4257
class Poko(
4358
val foo: ValueClass,
4459
val bar: ValueClass?,
@@ -107,8 +122,8 @@ class Github464 {
107122
"1" : null,
108123
"null-key" : null
109124
},
110-
"xyzzy" : 0,
111-
"plugh" : 0
125+
"plugh" : 0,
126+
"xyzzy" : 0
112127
}
113128
""".trimIndent(),
114129
writer.writeValueAsString(target)
@@ -145,8 +160,8 @@ class Github464 {
145160
"1" : "null-value",
146161
"null-key" : "null-value"
147162
},
148-
"xyzzy" : 0,
149-
"plugh" : 0
163+
"plugh" : 0,
164+
"xyzzy" : 0
150165
}
151166
""".trimIndent(),
152167
writer.writeValueAsString(target)

0 commit comments

Comments
 (0)