Skip to content

Commit 07a0e45

Browse files
committed
Delete Duration conversion that was no longer needed
Because of value class support, they are now converted elsewhere.
1 parent 6e1ea65 commit 07a0e45

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

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

-14
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,6 @@ internal class KotlinAnnotationIntrospector(
8686
?.takeIf { it.wrapsNullable() }
8787
?.let { cache.getValueClassBoxConverter(am.rawReturnType, it).delegatingSerializer }
8888

89-
override fun findDeserializationConverter(a: Annotated): Any? {
90-
if (!useJavaDurationConversion) return null
91-
92-
return (a as? AnnotatedParameter)?.let { param ->
93-
val valueParameter = cache.findKotlinParameter(param) ?: return@let null
94-
95-
if (valueParameter.type.classifier == Duration::class) {
96-
JavaToKotlinDurationConverter
97-
} else {
98-
null
99-
}
100-
}
101-
}
102-
10389
/**
10490
* Subclasses can be detected automatically for sealed classes, since all possible subclasses are known
10591
* at compile-time to Kotlin. This makes [com.fasterxml.jackson.annotation.JsonSubTypes] redundant.

0 commit comments

Comments
 (0)