Skip to content

Commit

Permalink
Merge remote-tracking branch 'FasterXML/2.18' into merge
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Feb 1, 2025
2 parents 39a15a9 + 3f117c3 commit c5294ec
Showing 1 changed file with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.fasterxml.jackson.module.kotlin.test.github

import com.fasterxml.jackson.annotation.JsonPropertyOrder
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.ObjectMapper
Expand Down Expand Up @@ -41,6 +42,20 @@ class Github464 {
fun <T> getXyzzy() = quux
}

@JsonPropertyOrder(
"foo",
"bar",
"baz",
"qux",
"quux",
"corge",
"grault",
"garply",
"waldo",
"fred",
"plugh",
"xyzzy"
)
class Poko(
val foo: ValueClass,
val bar: ValueClass?,
Expand Down Expand Up @@ -106,8 +121,8 @@ class Github464 {
"1" : null,
"null-key" : null
},
"xyzzy" : 0,
"plugh" : 0
"plugh" : 0,
"xyzzy" : 0
}
""".trimIndent(),
writer.writeValueAsString(target)
Expand Down Expand Up @@ -142,8 +157,8 @@ class Github464 {
"1" : "null-value",
"null-key" : "null-value"
},
"xyzzy" : 0,
"plugh" : 0
"plugh" : 0,
"xyzzy" : 0
}
""".trimIndent(),
writer.writeValueAsString(target)
Expand Down

0 comments on commit c5294ec

Please sign in to comment.