[SLC] SymbolLightModifierList: improve equals

^KTIJ-23783
This commit is contained in:
Dmitrii Gridin
2022-12-05 19:01:42 +01:00
committed by Space Team
parent 2ec09408d3
commit c5c79a5fb5
@@ -72,7 +72,8 @@ internal open class SymbolLightModifierList<out T : KtLightElement<KtModifierLis
override fun findAnnotation(qualifiedName: String): PsiAnnotation? =
lazyAnnotations?.value?.firstOrNull { it.qualifiedName == qualifiedName }
override fun equals(other: Any?): Boolean = this === other
override fun equals(other: Any?): Boolean = this === other || other is SymbolLightModifierList<*> && other.kotlinOrigin == kotlinOrigin
override fun hashCode(): Int = kotlinOrigin.hashCode()
override fun hasExplicitModifier(name: String) = hasModifierProperty(name)