Skip to content

Commit bd06aa3

Browse files
committed
Fixed an issue where a code was listed with a warning as deprecated
1 parent cf44b74 commit bd06aa3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,12 @@ see the [inline documentation](https://github.com/FasterXML/jackson-module-kotli
201201
for details on what options are available and what they do.
202202

203203
```kotlin
204+
val kotlinModule = KotlinModule.Builder()
205+
.enable(KotlinFeature.StrictNullChecks)
206+
.build()
204207
val mapper = JsonMapper.builder()
205-
.addModule(KotlinModule(strictNullChecks = true))
206-
.build()
208+
.addModule(kotlinModule)
209+
.build()
207210
```
208211

209212
If your `ObjectMapper` is constructed in Java, there is a builder method

0 commit comments

Comments
 (0)