Skip to content

Commit ba0116e

Browse files
authored
Merge pull request #1043 from k163377/cleanup
Cleanup of deprecated contents
2 parents 44c331c + bfec402 commit ba0116e

File tree

5 files changed

+6
-23
lines changed

5 files changed

+6
-23
lines changed

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@
252252
<excludes>
253253
<!-- public -->
254254
<!-- removed -->
255+
<exclude>
256+
com.fasterxml.jackson.module.kotlin.KotlinModule#getEnabledSingletonSupport()
257+
</exclude>
255258
<exclude>com.fasterxml.jackson.module.kotlin.MissingKotlinParameterException</exclude>
256259
<!-- internal -->
257260
<exclude>

release-notes/CREDITS-2.x

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Contributors:
1818
# 2.21.0 (not yet released)
1919

2020
WrongWrong (@k163377)
21+
* #1043: Cleanup of deprecated contents
2122
* #1042: Remove old StrictNullChecks
2223
* #1041: Remove MissingKotlinParameterException
2324
* #1039: Update settings for 2.20

release-notes/VERSION-2.x

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Co-maintainers:
1818

1919
2.21.0 (not yet released)
2020

21+
#1043: Deprecated content has been cleaned up with the version upgrade.
2122
#1042: The old StrictNullChecks backend has been removed.
2223
This improves the throughput of deserialization slightly.
2324
#1041: The deprecated MissingKotlinParameterException has been removed.

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,6 @@ class KotlinModule private constructor(
4848
val useJavaDurationConversion: Boolean = UseJavaDurationConversion.enabledByDefault,
4949
newStrictNullChecks: Boolean = NewStrictNullChecks.enabledByDefault,
5050
) : SimpleModule(KotlinModule::class.java.name, PackageVersion.VERSION) {
51-
/*
52-
* Prior to 2.18, an older Enum called SingletonSupport was used to manage feature.
53-
* To deprecate it and replace it with singletonSupport: Boolean, the following steps are in progress.
54-
*
55-
* 1. add enabledSingletonSupport: Boolean property
56-
* 2. delete SingletonSupport class and change the property to singletonSupport: Boolean
57-
* 3. remove the enabledSingletonSupport property
58-
*
59-
* Now that 2 is complete, deprecation is in progress for 3.
60-
*/
61-
@Deprecated(
62-
level = DeprecationLevel.ERROR,
63-
message = "This property is scheduled to be removed in 2.21 or later" +
64-
" in order to unify the use of KotlinFeature.",
65-
replaceWith = ReplaceWith("singletonSupport")
66-
)
67-
val enabledSingletonSupport: Boolean get() = singletonSupport
68-
6951
// To reduce the amount of destructive changes, no properties will be added to the public.
7052
val strictNullChecks: Boolean = if (strictNullChecks) {
7153
if (newStrictNullChecks) {

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ object ULongSerializer : StdSerializer<ULong>(ULong::class.java) {
4848
}
4949
}
5050

51-
@Deprecated(
52-
message = "This class was published by mistake. It will be removed in `2.22.0` as it is no longer used internally.",
53-
level = DeprecationLevel.WARNING
54-
)
55-
object ValueClassUnboxSerializer : StdSerializer<Any>(Any::class.java) {
51+
internal object ValueClassUnboxSerializer : StdSerializer<Any>(Any::class.java) {
5652
private fun readResolve(): Any = ValueClassUnboxSerializer
5753

5854
override fun serialize(value: Any, gen: JsonGenerator, provider: SerializerProvider) {

0 commit comments

Comments
 (0)