[lc] KtLightClassForFacadeBase: simplify equals
^KT-53543
This commit is contained in:
+1
-1
@@ -202,12 +202,12 @@ abstract class KtLightClassForFacadeBase constructor(
|
|||||||
override fun hashCode() = facadeClassFqName.hashCode()
|
override fun hashCode() = facadeClassFqName.hashCode()
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
override fun equals(other: Any?): Boolean {
|
||||||
|
if (this === other) return true
|
||||||
if (other == null || this::class.java != other::class.java) {
|
if (other == null || this::class.java != other::class.java) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
val lightClass = other as KtLightClassForFacadeBase
|
val lightClass = other as KtLightClassForFacadeBase
|
||||||
if (this === other) return true
|
|
||||||
|
|
||||||
if (facadeClassFqName != lightClass.facadeClassFqName) return false
|
if (facadeClassFqName != lightClass.facadeClassFqName) return false
|
||||||
if (files != lightClass.files) return false
|
if (files != lightClass.files) return false
|
||||||
|
|||||||
Reference in New Issue
Block a user