From c2aa824242656d8d0e5bf41baf9234931ef57048 Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Tue, 24 Jun 2014 15:26:09 +0400 Subject: [PATCH] Implement light method equality based on the original declarations #KT-4350 Fixed --- .../jetbrains/jet/asJava/KotlinLightMethodForDeclaration.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/KotlinLightMethodForDeclaration.kt b/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/KotlinLightMethodForDeclaration.kt index 8e15f922e40..152147f86dd 100644 --- a/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/KotlinLightMethodForDeclaration.kt +++ b/compiler/jet.as.java.psi/src/org/jetbrains/jet/asJava/KotlinLightMethodForDeclaration.kt @@ -110,4 +110,9 @@ public class KotlinLightMethodForDeclaration( } override fun getUseScope(): SearchScope = origin.getUseScope() + + override fun equals(other: Any?): Boolean = + other is KotlinLightMethodForDeclaration && getName() == other.getName() && origin == other.origin + + override fun hashCode(): Int = getName().hashCode() * 31 + origin.hashCode() }