Remove redundant additional check for @Polymorphic annotation
This commit is contained in:
-2
@@ -171,8 +171,6 @@ internal val KotlinType.overridenSerializer: KotlinType?
|
|||||||
get() {
|
get() {
|
||||||
val desc = this.toClassDescriptor ?: return null
|
val desc = this.toClassDescriptor ?: return null
|
||||||
desc.serializableWith?.let { return it }
|
desc.serializableWith?.let { return it }
|
||||||
if (desc.annotations.hasAnnotation(SerializationAnnotations.polymorphicFqName))
|
|
||||||
return desc.module.getClassFromSerializationPackage(SpecialBuiltins.polymorphicSerializer).defaultType
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user