Generate equals/hashCode(): Swap class literals in comparison
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ class A : X() {
|
||||
|
||||
<caret>override fun equals(other: Any?): Boolean {
|
||||
if (this === other) return true
|
||||
if (other?.javaClass != javaClass) return false
|
||||
if (javaClass != other?.javaClass) return false
|
||||
if (!super.equals(other)) return false
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user