Uast: UastFakeLightMethod hashcode fix (KT-37200)
This commit is contained in:
@@ -197,11 +197,7 @@ private class UastFakeLightMethod(private val original: KtFunction, containingCl
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hashCode(): Int {
|
override fun hashCode(): Int = original.hashCode()
|
||||||
var result = super.hashCode()
|
|
||||||
result = 31 * result + original.hashCode()
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class KotlinUMethodWithFakeLightDelegate(val original: KtFunction, containingLightClass: PsiClass, givenParent: UElement?) :
|
class KotlinUMethodWithFakeLightDelegate(val original: KtFunction, containingLightClass: PsiClass, givenParent: UElement?) :
|
||||||
|
|||||||
@@ -200,11 +200,7 @@ private class UastFakeLightMethod(private val original: KtFunction, containingCl
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hashCode(): Int {
|
override fun hashCode(): Int = original.hashCode()
|
||||||
var result = super.hashCode()
|
|
||||||
result = 31 * result + original.hashCode()
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class KotlinUMethodWithFakeLightDelegate(val original: KtFunction, containingLightClass: PsiClass, givenParent: UElement?) :
|
class KotlinUMethodWithFakeLightDelegate(val original: KtFunction, containingLightClass: PsiClass, givenParent: UElement?) :
|
||||||
|
|||||||
Reference in New Issue
Block a user