We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaff04b commit 3745b3cCopy full SHA for 3745b3c
processor/src/test/kotlin/com/tobrun/datacompat/SimpleTestContent.kt
@@ -22,10 +22,12 @@ internal val expectedSimpleTestContent = """
22
) {
23
public override fun toString() = "Person(name=%name, nickname=%nickname, age=%age)"
24
25
- public override fun equals(other: Any?): Boolean = other is Person
26
- && name == other.name
27
- && nickname == other.nickname
28
- && age == other.age
+ public override fun equals(other: Any?): Boolean {
+ if (this === other) return true
+ if (javaClass != other?.javaClass) return false
+ other as Person
29
+ return name == other.name && nickname == other.nickname && age == other.age
30
+ }
31
32
public override fun hashCode(): Int = Objects.hash(name, nickname, age)
33
0 commit comments