Don't perform additional lookups for DeprecatedSinceKotlin annotation

There is no need to check it as `DeprecatedSinceKotlin` can be used
 only along with `Deprecated` annotation
This commit is contained in:
Mikhail Zarechenskiy
2020-06-17 18:59:01 +03:00
parent 158013ef3a
commit 0f2c96c64d
5 changed files with 2 additions and 6 deletions
@@ -370,7 +370,7 @@ internal fun KtModifierListOwner.isDeprecated(support: KtUltraLightSupport? = nu
val fqName = toQualifiedName(typeElement) ?: continue
if (fqName == deprecatedFqName || fqName == KotlinBuiltIns.FQ_NAMES.deprecatedSinceKotlin) return true
if (fqName == deprecatedFqName) return true
if (fqName.asString() == deprecatedName) return true
}