From d196050d9fbd67a791f951ad4651e313c4d73654 Mon Sep 17 00:00:00 2001 From: Jinseong Jeon Date: Fri, 20 May 2022 17:11:54 -0700 Subject: [PATCH] FIR LC: remove unnecessary bail-out in annotation util There is another place below that handles the case where no explicit annotations are bound, and there unknwon nullability will be handled too. --- .../kotlin/light/classes/symbol/annotations/annotationsUtils.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/annotations/annotationsUtils.kt b/analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/annotations/annotationsUtils.kt index 7e452eeb66d..7ebf85cb47c 100644 --- a/analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/annotations/annotationsUtils.kt +++ b/analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/annotations/annotationsUtils.kt @@ -93,8 +93,6 @@ internal fun KtAnnotatedSymbol.computeAnnotations( includeAnnotationsWithoutSite: Boolean = true ): List { - if (nullability == NullabilityType.Unknown && annotations.isEmpty()) return emptyList() - val nullabilityAnnotation = when (nullability) { NullabilityType.NotNull -> NotNull::class.java NullabilityType.Nullable -> Nullable::class.java