Skip to content

Commit 277657d

Browse files
authored
Merge pull request #37201 from k163377/patch-1
Fixed sample code for KotlinModule initialization
2 parents 73fa294 + 2948027 commit 277657d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/main/asciidoc/kotlin.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,9 @@ import io.fabric8.kubernetes.client.utils.Serialization
470470
import com.fasterxml.jackson.module.kotlin.KotlinModule
471471
472472
...
473-
474-
Serialization.jsonMapper().registerModule(KotlinModule())
475-
Serialization.yamlMapper().registerModule(KotlinModule())
473+
val kotlinModule = KotlinModule.Builder().build()
474+
Serialization.jsonMapper().registerModule(kotlinModule)
475+
Serialization.yamlMapper().registerModule(kotlinModule)
476476
----
477477

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

0 commit comments

Comments
 (0)