Merge pull request #7636 from k163377/fix-kotlin-module

ENT-11325: Fixed to not use API that will be discontinued in the future
This commit is contained in:
Adel El-Beik 2024-01-04 15:27:20 +00:00 committed by GitHub
commit ab4a24eb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ import com.fasterxml.jackson.databind.deser.BeanDeserializerModifier
import com.fasterxml.jackson.databind.deser.std.NumberDeserializers
import com.fasterxml.jackson.databind.node.ObjectNode
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.fasterxml.jackson.module.kotlin.kotlinModule
import net.corda.client.jackson.internal.CordaModule
import net.corda.client.jackson.internal.ToStringSerialize
import net.corda.client.jackson.internal.jsonObject
@ -197,7 +197,7 @@ object JacksonSupport {
addSerializer(Date::class.java, DateSerializer)
})
registerModule(CordaModule())
registerModule(KotlinModule().apply {
registerModule(kotlinModule().apply {
setDeserializerModifier(KotlinObjectDeserializerModifier)
})