Generate equals/hashCode(): Swap class literals in comparison
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ class A(val n: Int) : 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
|
||||
|
||||
other as A
|
||||
|
||||
Reference in New Issue
Block a user