Skip to content

Commit

Permalink
Fixed sample code for KotlinModule initialization.
Browse files Browse the repository at this point in the history
Initialization using the constructor has been deprecated.
  • Loading branch information
k163377 authored Nov 18, 2023
1 parent 08ed1da commit 2948027
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 2948027

Please sign in to comment.