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.
This commit is contained in:
committed by
Ilya Kirillov
parent
58c2433bdd
commit
d196050d9f
-2
@@ -93,8 +93,6 @@ internal fun KtAnnotatedSymbol.computeAnnotations(
|
||||
includeAnnotationsWithoutSite: Boolean = true
|
||||
): List<PsiAnnotation> {
|
||||
|
||||
if (nullability == NullabilityType.Unknown && annotations.isEmpty()) return emptyList()
|
||||
|
||||
val nullabilityAnnotation = when (nullability) {
|
||||
NullabilityType.NotNull -> NotNull::class.java
|
||||
NullabilityType.Nullable -> Nullable::class.java
|
||||
|
||||
Reference in New Issue
Block a user