[KPM] KotlinExternalModelType: Use class.name over qualifiedName

KT-51262
KT-51220
This commit is contained in:
sebastian.sellmair
2022-02-14 15:58:38 +01:00
committed by Space
parent 2dfb3f61d8
commit 5263212685
@@ -39,5 +39,5 @@ internal fun externalModelTypeSignature(type: KType): String {
require(type.arguments.isEmpty()) { "Parameterized types are not supported. Found $type" }
val classifier = requireNotNull(type.classifier) { "Expected classifier. Found $type" }
val clazz = (classifier as? KClass<*>) ?: throw IllegalArgumentException("Expected KClass classifier. Found $classifier")
return clazz.qualifiedName ?: throw IllegalArgumentException("Missing qualifiedName in $type")
return clazz.java.name ?: throw IllegalArgumentException("Missing qualifiedName in $type")
}