Skip to content

Commit 8d775aa

Browse files
committed
Marked useKotlinPropertyNameForGetter as deprecated
There was a discrepancy between the property name and the Feature name.
1 parent 452cc57 commit 8d775aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,17 @@ class KotlinModule @Deprecated(
5353
val nullIsSameAsDefault: Boolean = NullIsSameAsDefault.enabledByDefault,
5454
val singletonSupport: SingletonSupport = DISABLED,
5555
val strictNullChecks: Boolean = StrictNullChecks.enabledByDefault,
56+
@Deprecated(
57+
level = DeprecationLevel.WARNING,
58+
message = "There was a discrepancy between the property name and the Feature name." +
59+
" To migrate to the correct property name, it will be ERROR in 2.18 and removed in 2.19.",
60+
replaceWith = ReplaceWith("kotlinPropertyNameAsImplicitName")
61+
)
5662
val useKotlinPropertyNameForGetter: Boolean = KotlinPropertyNameAsImplicitName.enabledByDefault,
5763
val useJavaDurationConversion: Boolean = UseJavaDurationConversion.enabledByDefault,
5864
) : SimpleModule(KotlinModule::class.java.name, PackageVersion.VERSION) {
65+
val kotlinPropertyNameAsImplicitName: Boolean get() = useKotlinPropertyNameForGetter
66+
5967
companion object {
6068
// Increment when option is added
6169
private const val serialVersionUID = 2L

0 commit comments

Comments
 (0)