Skip to content

Commit 2ab7353

Browse files
committed
Raise deprecation level
1 parent b9776d4 commit 2ab7353

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinFeature.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ enum class KotlinFeature(internal val enabledByDefault: Boolean) {
4343
* Enabling it protects against this but has significant performance impact.
4444
*/
4545
@Deprecated(
46-
level = DeprecationLevel.WARNING,
46+
level = DeprecationLevel.ERROR,
4747
message = "This option will be migrated to the new backend in 2.21.",
4848
replaceWith = ReplaceWith("NewStrictNullChecks")
4949
)

src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinModule.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class KotlinModule private constructor(
4343
val nullToEmptyMap: Boolean = NullToEmptyMap.enabledByDefault,
4444
val nullIsSameAsDefault: Boolean = NullIsSameAsDefault.enabledByDefault,
4545
val singletonSupport: Boolean = SingletonSupport.enabledByDefault,
46+
@Suppress("DEPRECATION_ERROR")
4647
strictNullChecks: Boolean = StrictNullChecks.enabledByDefault,
4748
val kotlinPropertyNameAsImplicitName: Boolean = KotlinPropertyNameAsImplicitName.enabledByDefault,
4849
val useJavaDurationConversion: Boolean = UseJavaDurationConversion.enabledByDefault,
@@ -59,7 +60,7 @@ class KotlinModule private constructor(
5960
* Now that 2 is complete, deprecation is in progress for 3.
6061
*/
6162
@Deprecated(
62-
level = DeprecationLevel.WARNING,
63+
level = DeprecationLevel.ERROR,
6364
message = "This property is scheduled to be removed in 2.21 or later" +
6465
" in order to unify the use of KotlinFeature.",
6566
replaceWith = ReplaceWith("singletonSupport")
@@ -96,6 +97,7 @@ class KotlinModule private constructor(
9697
builder.isEnabled(NullToEmptyMap),
9798
builder.isEnabled(NullIsSameAsDefault),
9899
builder.isEnabled(SingletonSupport),
100+
@Suppress("DEPRECATION_ERROR")
99101
builder.isEnabled(StrictNullChecks),
100102
builder.isEnabled(KotlinPropertyNameAsImplicitName),
101103
builder.isEnabled(UseJavaDurationConversion),

0 commit comments

Comments
 (0)