Uast: UastFakeLightMethod hashcode fix (KT-37200)

This commit is contained in:
Nicolay Mitropolsky
2020-03-10 16:32:30 +03:00
parent 5bb74d9840
commit d1739289c6
2 changed files with 2 additions and 10 deletions
@@ -197,11 +197,7 @@ private class UastFakeLightMethod(private val original: KtFunction, containingCl
return true
}
override fun hashCode(): Int {
var result = super.hashCode()
result = 31 * result + original.hashCode()
return result
}
override fun hashCode(): Int = original.hashCode()
}
class KotlinUMethodWithFakeLightDelegate(val original: KtFunction, containingLightClass: PsiClass, givenParent: UElement?) :
@@ -200,11 +200,7 @@ private class UastFakeLightMethod(private val original: KtFunction, containingCl
return true
}
override fun hashCode(): Int {
var result = super.hashCode()
result = 31 * result + original.hashCode()
return result
}
override fun hashCode(): Int = original.hashCode()
}
class KotlinUMethodWithFakeLightDelegate(val original: KtFunction, containingLightClass: PsiClass, givenParent: UElement?) :