Pre-count and store fqname to avoid read-action requiment in equals and hashCode (EA-72806)

This commit is contained in:
Nikolay Krasko
2015-09-09 17:20:48 +03:00
parent 736a60cc18
commit f348f56a0b
@@ -26,6 +26,8 @@ class KotlinLightClassForDecompiledDeclaration(
private val clsClass: ClsClassImpl,
private val origin: JetClassOrObject?
) : KotlinWrappingLightClass(clsClass.getManager()) {
val _fqName = origin?.getFqName() ?: FqName(clsClass.getQualifiedName())
override fun copy() = this
override fun getOwnInnerClasses(): List<PsiClass> {
@@ -42,7 +44,7 @@ class KotlinLightClassForDecompiledDeclaration(
override fun getOrigin() = origin
override fun getFqName() = origin?.getFqName() ?: FqName(clsClass.getQualifiedName())
override fun getFqName() = _fqName
override fun equals(other: Any?): Boolean =
other is KotlinLightClassForDecompiledDeclaration &&