Skip to content

Commit 48ca865

Browse files
committed
Mappers: Use the new explicit JsonMapper
This is more speaking than using the generic ObjectMapper here, also see FasterXML/jackson-databind#2153. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 8ee3905 commit 48ca865

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

model/src/main/kotlin/Mappers.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import com.fasterxml.jackson.databind.JsonNode
2323
import com.fasterxml.jackson.databind.ObjectMapper
2424
import com.fasterxml.jackson.databind.PropertyNamingStrategy
2525
import com.fasterxml.jackson.databind.SerializationFeature
26+
import com.fasterxml.jackson.databind.json.JsonMapper
2627
import com.fasterxml.jackson.databind.node.MissingNode
2728
import com.fasterxml.jackson.dataformat.xml.XmlMapper
2829
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper
@@ -43,7 +44,7 @@ private val mapperConfig: ObjectMapper.() -> Unit = {
4344
propertyNamingStrategy = PROPERTY_NAMING_STRATEGY
4445
}
4546

46-
val jsonMapper = ObjectMapper().apply(mapperConfig)
47+
val jsonMapper = JsonMapper().apply(mapperConfig)
4748
val xmlMapper = XmlMapper().apply(mapperConfig)
4849
val yamlMapper = YAMLMapper().apply(mapperConfig)
4950

0 commit comments

Comments
 (0)