Skip to content

Commit 835050c

Browse files
committed
Remove ValueClassUnboxSerializer
It should have been removed as it is no longer in use, but FasterXML#1043 accidentally made it internal.
1 parent ba0116e commit 835050c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ object ULongSerializer : StdSerializer<ULong>(ULong::class.java) {
4848
}
4949
}
5050

51-
internal object ValueClassUnboxSerializer : StdSerializer<Any>(Any::class.java) {
52-
private fun readResolve(): Any = ValueClassUnboxSerializer
53-
54-
override fun serialize(value: Any, gen: JsonGenerator, provider: SerializerProvider) {
55-
val unboxed = value::class.java.getMethod("unbox-impl").invoke(value)
56-
provider.defaultSerializeValue(unboxed, gen)
57-
}
58-
}
59-
6051
// Class must be UnboxableValueClass.
6152
private fun Class<*>.getStaticJsonValueGetter(): Method? = this.declaredMethods.find { method ->
6253
Modifier.isStatic(method.modifiers) && method.annotations.any { it is JsonValue && it.value }

0 commit comments

Comments
 (0)