From 83766b133899001182cca49d0112867822bfb5b4 Mon Sep 17 00:00:00 2001 From: wrongwrong Date: Sun, 3 Dec 2023 12:55:38 +0900 Subject: [PATCH 1/3] Remove unused class --- .../jackson/module/kotlin/KotlinSerializers.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinSerializers.kt b/src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinSerializers.kt index 6821796a..1e69f741 100644 --- a/src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinSerializers.kt +++ b/src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinSerializers.kt @@ -13,16 +13,6 @@ import java.lang.reflect.Method import java.lang.reflect.Modifier import java.math.BigInteger -@Deprecated( - message = "This class will be removed in 2.16 or later as it has been replaced by SequenceToIteratorConverter.", - replaceWith = ReplaceWith("com.fasterxml.jackson.module.kotlin.SequenceToIteratorConverter") -) -object SequenceSerializer : StdSerializer>(Sequence::class.java) { - override fun serialize(value: Sequence<*>, gen: JsonGenerator, provider: SerializerProvider) { - provider.defaultSerializeValue(value.iterator(), gen) - } -} - object UByteSerializer : StdSerializer(UByte::class.java) { override fun serialize(value: UByte, gen: JsonGenerator, provider: SerializerProvider) = gen.writeNumber(value.toShort()) From beaadda37dec3cb9f19404e4c8b2ec702e7770e1 Mon Sep 17 00:00:00 2001 From: wrongwrong Date: Sun, 3 Dec 2023 12:57:35 +0900 Subject: [PATCH 2/3] Fix japicmp setting --- pom.xml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index a45af478..0a56ab91 100644 --- a/pom.xml +++ b/pom.xml @@ -218,7 +218,7 @@ --> - 2.15.2 + 2.16.0 jar @@ -232,12 +232,9 @@ true - - com.fasterxml.jackson.module.kotlin.KotlinModule + + com.fasterxml.jackson.module.kotlin.SequenceSerializer - com.fasterxml.jackson.module.kotlin.KotlinNamesAnnotationIntrospector - com.fasterxml.jackson.module.kotlin.KotlinAnnotationIntrospector - com.fasterxml.jackson.module.kotlin.KotlinDeserializers From 3d645189cb7508ad9145a6b2b8c98794d914ccfc Mon Sep 17 00:00:00 2001 From: wrongwrong Date: Sun, 3 Dec 2023 12:59:30 +0900 Subject: [PATCH 3/3] Update release notes wrt #732 --- release-notes/CREDITS-2.x | 3 +++ release-notes/VERSION-2.x | 1 + 2 files changed, 4 insertions(+) diff --git a/release-notes/CREDITS-2.x b/release-notes/CREDITS-2.x index 3ae243a1..fb0ba403 100644 --- a/release-notes/CREDITS-2.x +++ b/release-notes/CREDITS-2.x @@ -16,6 +16,9 @@ Authors: Contributors: # 2.17.0 (not yet released) + +WrongWrong (@k163377) +* #732: SequenceSerializer removed. * #727: Fixed overriding findCreatorAnnotation instead of hasCreatorAnnotation # 2.16.0 diff --git a/release-notes/VERSION-2.x b/release-notes/VERSION-2.x index 85677a03..7761df5d 100644 --- a/release-notes/VERSION-2.x +++ b/release-notes/VERSION-2.x @@ -18,6 +18,7 @@ Co-maintainers: 2.17.0 (not yet released) +#732: SequenceSerializer removed. #727: Fixed overriding findCreatorAnnotation instead of hasCreatorAnnotation. 2.16.0 (15-Nov-2023)