Generate equals/hashCode(): Swap class literals in comparison
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Example(val `in`: String, val `cl ass`: String, val `valid`: Boolean) {
|
||||
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 Example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user