[DLC] add missing identity checks to 'equals'
^KT-56613
This commit is contained in:
committed by
Space Team
parent
95455c9870
commit
847b29ac15
+2
-1
@@ -57,7 +57,8 @@ open class KtLightFieldForDecompiledDeclaration(
|
||||
|
||||
override fun computeConstantValue(visitedVars: MutableSet<PsiVariable>?): Any? = (fldDelegate as? PsiVariableEx)?.computeConstantValue(visitedVars)
|
||||
|
||||
override fun equals(other: Any?): Boolean = other is KtLightFieldForDecompiledDeclaration &&
|
||||
override fun equals(other: Any?): Boolean = other === this ||
|
||||
other is KtLightFieldForDecompiledDeclaration &&
|
||||
name == other.name &&
|
||||
fldParent == other.fldParent &&
|
||||
fldDelegate == other.fldDelegate
|
||||
|
||||
+2
-1
@@ -87,7 +87,8 @@ class KtLightMethodForDecompiledDeclaration(
|
||||
override fun getSignature(substitutor: PsiSubstitutor): MethodSignature =
|
||||
MethodSignatureBackedByPsiMethod.create(this, substitutor)
|
||||
|
||||
override fun equals(other: Any?): Boolean = other is KtLightMethodForDecompiledDeclaration &&
|
||||
override fun equals(other: Any?): Boolean = other === this ||
|
||||
other is KtLightMethodForDecompiledDeclaration &&
|
||||
name == other.name &&
|
||||
funParent == other.funParent &&
|
||||
funDelegate == other.funDelegate
|
||||
|
||||
Reference in New Issue
Block a user