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