Skip to content

Commit

Permalink
Merge pull request #37201 from k163377/patch-1
Browse files Browse the repository at this point in the history
Fixed sample code for KotlinModule initialization
  • Loading branch information
gsmet authored Nov 19, 2023
2 parents 73fa294 + 2948027 commit 277657d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/kotlin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ import io.fabric8.kubernetes.client.utils.Serialization
import com.fasterxml.jackson.module.kotlin.KotlinModule
...
Serialization.jsonMapper().registerModule(KotlinModule())
Serialization.yamlMapper().registerModule(KotlinModule())
val kotlinModule = KotlinModule.Builder().build()
Serialization.jsonMapper().registerModule(kotlinModule)
Serialization.yamlMapper().registerModule(kotlinModule)
----

_Please test this carefully on compilation to native images and fallback to Java-compatible Jackson bindings if you experience problems._
Expand Down

0 comments on commit 277657d

Please sign in to comment.