Skip to content

Commit d2a5281

Browse files
committed
Kotlin: Remove another cast
1 parent b0ae128 commit d2a5281

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,13 +1459,13 @@ open class KotlinUsesExtractor(
14591459
return eraseTypeParameter(owner)
14601460
}
14611461

1462-
if (t.isArray() || t.isNullableArray()) {
1463-
val elementType = t.getArrayElementType(pluginContext.irBuiltIns)
1464-
val erasedElementType = erase(elementType)
1465-
return (classifier as IrClassSymbol).typeWith(erasedElementType).codeQlWithHasQuestionMark(t.hasQuestionMark)
1466-
}
1467-
14681462
if (owner is IrClass) {
1463+
if (t.isArray() || t.isNullableArray()) {
1464+
val elementType = t.getArrayElementType(pluginContext.irBuiltIns)
1465+
val erasedElementType = erase(elementType)
1466+
return owner.typeWith(erasedElementType).codeQlWithHasQuestionMark(t.hasQuestionMark)
1467+
}
1468+
14691469
return if (t.arguments.isNotEmpty())
14701470
t.addAnnotations(listOf(RawTypeAnnotation.annotationConstructor))
14711471
else

0 commit comments

Comments
 (0)