Skip to content

Commit

Permalink
Merge remote-tracking branch 'FasterXML/2.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Dec 3, 2023
2 parents f8c7b4b + 16046f6 commit 3f87cb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 3 additions & 0 deletions release-notes/CREDITS-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 0 additions & 10 deletions src/main/kotlin/tools/jackson/module/kotlin/KotlinSerializers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,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<*>>(Sequence::class.java) {
override fun serialize(value: Sequence<*>, gen: JsonGenerator, provider: SerializerProvider) {
provider.writeValue(gen, value.iterator())
}
}

object UByteSerializer : StdSerializer<UByte>(UByte::class.java) {
override fun serialize(value: UByte, gen: JsonGenerator, provider: SerializerProvider) {
gen.writeNumber(value.toShort())
Expand Down

0 comments on commit 3f87cb7

Please sign in to comment.