diff --git a/processor/src/main/kotlin/io/mcarle/konvert/processor/konvert/KonverterCodeGenerator.kt b/processor/src/main/kotlin/io/mcarle/konvert/processor/konvert/KonverterCodeGenerator.kt index 6025eda..6b5e335 100644 --- a/processor/src/main/kotlin/io/mcarle/konvert/processor/konvert/KonverterCodeGenerator.kt +++ b/processor/src/main/kotlin/io/mcarle/konvert/processor/konvert/KonverterCodeGenerator.kt @@ -125,7 +125,7 @@ object KonverterCodeGenerator { } private fun isAlias(typeReference: KSTypeReference, type: KSType): Boolean { - return typeReference.toString() != type.makeNotNullable().toString().takeWhile { it != '<' } + return typeReference.toString().takeWhile { it != '<' } != type.makeNotNullable().toString().takeWhile { it != '<' } } private fun retrieveCodeBuilder(