Skip to content

Commit d17465a

Browse files
committed
Remove useKotlinPropertyNameForGetter and unify with kotlinPropertyNameAsImplicitName
Since FasterXML#835 has not been released, the serialVersionUID has not been changed.
1 parent 8c971d0 commit d17465a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,9 @@ class KotlinModule private constructor(
4343
val nullIsSameAsDefault: Boolean = NullIsSameAsDefault.enabledByDefault,
4444
val singletonSupport: Boolean = SingletonSupport.enabledByDefault,
4545
val strictNullChecks: Boolean = StrictNullChecks.enabledByDefault,
46-
@Deprecated(
47-
level = DeprecationLevel.ERROR,
48-
message = "There was a discrepancy between the property name and the Feature name." +
49-
" To migrate to the correct property name, it will be ERROR in 2.18 and removed in 2.19.",
50-
replaceWith = ReplaceWith("kotlinPropertyNameAsImplicitName")
51-
)
52-
val useKotlinPropertyNameForGetter: Boolean = KotlinPropertyNameAsImplicitName.enabledByDefault,
46+
val kotlinPropertyNameAsImplicitName: Boolean = KotlinPropertyNameAsImplicitName.enabledByDefault,
5347
val useJavaDurationConversion: Boolean = UseJavaDurationConversion.enabledByDefault,
5448
) : SimpleModule(KotlinModule::class.java.name, PackageVersion.VERSION) {
55-
@Suppress("DEPRECATION_ERROR")
56-
val kotlinPropertyNameAsImplicitName: Boolean get() = useKotlinPropertyNameForGetter
57-
5849
/*
5950
* Prior to 2.18, an older Enum called SingletonSupport was used to manage feature.
6051
* To deprecate it and replace it with singletonSupport: Boolean, the following steps are in progress.

0 commit comments

Comments
 (0)