Skip to content

Commit 1e1c9f6

Browse files
committed
Avoid Kotlin 1.5+ function firstNotNullOfOrNull
1 parent 24f87ac commit 1e1c9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ open class KotlinUsesExtractor(
12311231
fun getInnermostWildcardSupppressionAnnotation(d: IrDeclaration) =
12321232
getWildcardSuppressionDirective(d) ?:
12331233
// Note not using `parentsWithSelf` as that only works if `d` is an IrDeclarationParent
1234-
d.parents.filterIsInstance<IrAnnotationContainer>().firstNotNullOfOrNull { getWildcardSuppressionDirective(it) } ?:
1234+
d.parents.filterIsInstance<IrAnnotationContainer>().mapNotNull { getWildcardSuppressionDirective(it) }.firstOrNull() ?:
12351235
false
12361236

12371237
/**

0 commit comments

Comments
 (0)