9681f5ca42
Also: - forbid for enum classes - use javaClass.hashCode() instead of 0 if class has no properties #KT-18418 Fixed
18 lines
354 B
Plaintext
Vendored
18 lines
354 B
Plaintext
Vendored
class Test {
|
|
var serial: String = ""
|
|
get
|
|
set
|
|
var name: String = ""
|
|
get
|
|
|
|
override fun equals(other: Any?): Boolean {
|
|
if (this === other) return true
|
|
if (other?.javaClass != javaClass) return false
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
return javaClass.hashCode()
|
|
}
|
|
|
|
} |