[java] Redundant check removed after NotNull ExternalAnnotationsManager.findExternalAnnotations

GitOrigin-RevId: 0adeb1b79f837b1002b88ddb1415c53154a21ec0
This commit is contained in:
Tagir Valeev
2024-09-18 10:39:53 +02:00
committed by intellij-monorepo-bot
parent 1d83886b74
commit f286bbfeaf

View File

@@ -176,7 +176,7 @@ class TaintValueFactory(private val myConfiguration: UntaintedConfiguration) {
return TaintValue.UNKNOWN
}
val annotationsManager = ExternalAnnotationsManager.getInstance(owner.project)
val annotations = annotationsManager.findExternalAnnotations(owner) ?: return TaintValue.UNKNOWN
val annotations = annotationsManager.findExternalAnnotations(owner)
return annotations.asSequence()
.map { fromAnnotation(it) }
.filterNotNull()