[lc] KtLightClassForFacadeBase: simplify equals

^KT-53543
This commit is contained in:
Dmitry Gridin
2022-08-17 16:03:05 +02:00
committed by Space
parent 5be31e575c
commit 0bbe981ff0
@@ -202,12 +202,12 @@ abstract class KtLightClassForFacadeBase constructor(
override fun hashCode() = facadeClassFqName.hashCode()
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other == null || this::class.java != other::class.java) {
return false
}
val lightClass = other as KtLightClassForFacadeBase
if (this === other) return true
if (facadeClassFqName != lightClass.facadeClassFqName) return false
if (files != lightClass.files) return false