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