Skip to content

Commit 7e475f9

Browse files
committed
Fixed a change error regarding the default setting for StrictNullChecks
1 parent 9b0dc06 commit 7e475f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/tools/jackson/module/kotlin/KotlinFeature.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
4444
* Internally, it will be the same as if [JsonSetter] (contentNulls = FAIL) had been granted.
4545
*
4646
* Benchmarks show that it can check for illegal nulls with throughput nearly identical to the default (see [jackson-module-kotlin#719]).
47+
*
48+
* Since 3.0, this option is enabled by default.
4749
*/
48-
StrictNullChecks(enabledByDefault = false),
50+
StrictNullChecks(enabledByDefault = true),
4951

5052
/**
5153
* By enabling this feature, the property name on Kotlin is used as the implicit name for the getter.
@@ -81,8 +83,6 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
8183
* This is a temporary option for a phased backend migration,
8284
* which will eventually be merged into [StrictNullChecks].
8385
* Also, specifying both this and [StrictNullChecks] is not permitted.
84-
*
85-
* Since 3.0, this option is enabled by default.
8686
*/
8787
@Deprecated(
8888
level = DeprecationLevel.WARNING,

0 commit comments

Comments
 (0)