@@ -40,13 +40,12 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
40
40
*
41
41
* With this disabled, the default, collections which are typed to disallow null members (e.g. `List<String>`)
42
42
* may contain null values after deserialization.
43
- * Enabling it protects against this but has significant performance impact.
43
+ * Enabling this will cause an [InvalidNullException] to be thrown if null is entered.
44
+ *
45
+ * Internally, it will be the same as if [JsonSetter] (contentNulls = FAIL) had been granted.
46
+ *
47
+ * Benchmarks show that it can check for illegal nulls with throughput nearly identical to the default (see [jackson-module-kotlin#719]).
44
48
*/
45
- @Deprecated(
46
- level = DeprecationLevel .ERROR ,
47
- message = " This option will be migrated to the new backend in 2.21." ,
48
- replaceWith = ReplaceWith (" NewStrictNullChecks" )
49
- )
50
49
StrictNullChecks (enabledByDefault = false ),
51
50
52
51
/* *
@@ -80,15 +79,15 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
80
79
* Internally, it will be the same as if [JsonSetter] (contentNulls = FAIL) had been granted.
81
80
* Benchmarks show that it can check for illegal nulls with throughput nearly identical to the default (see [jackson-module-kotlin#719]).
82
81
*
83
- * Note that in the new backend, the exception thrown has changed from [MissingKotlinParameterException] to [InvalidNullException].
84
- * The message will be changed accordingly.
85
- * Since 2.19, the base class of [MissingKotlinParameterException] has also been changed to [InvalidNullException],
86
- * so be careful when catching it.
87
- *
88
82
* This is a temporary option for a phased backend migration,
89
83
* which will eventually be merged into [StrictNullChecks].
90
84
* Also, specifying both this and [StrictNullChecks] is not permitted.
91
85
*/
86
+ @Deprecated(
87
+ level = DeprecationLevel .WARNING ,
88
+ message = " This option will be merged into StrictNullChecks in 2.23." ,
89
+ replaceWith = ReplaceWith (" StrictNullChecks" )
90
+ )
92
91
NewStrictNullChecks (enabledByDefault = false );
93
92
94
93
internal val bitSet: BitSet = (1 shl ordinal).toBitSet()
0 commit comments