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 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) 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())