mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge-request: IJ-MR-146523 Merged-by: Maksim Zuev <Maksim.Zuev@jetbrains.com> GitOrigin-RevId: ed92f3474ee18e280297f1e6c935975496a36b8c
33 lines
907 B
Plaintext
33 lines
907 B
Plaintext
class A(val n: IntArray?, val s: Array<String>?) {
|
|
val f: Float = 1.0f
|
|
|
|
fun foo() {
|
|
|
|
}
|
|
|
|
<caret>override fun equals(other: Any?): Boolean {
|
|
if (this === other) return true
|
|
if (javaClass != other?.javaClass) return false
|
|
|
|
other as A
|
|
|
|
if (f != other.f) return false
|
|
if (n != null) {
|
|
if (other.n == null) return false
|
|
if (!n.contentEquals(other.n)) return false
|
|
} else if (other.n != null) return false
|
|
if (s != null) {
|
|
if (other.s == null) return false
|
|
if (!s.contentEquals(other.s)) return false
|
|
} else if (other.s != null) return false
|
|
|
|
return true
|
|
}
|
|
|
|
override fun hashCode(): Int {
|
|
var result = f.hashCode()
|
|
result = 31 * result + (n?.contentHashCode() ?: 0)
|
|
result = 31 * result + (s?.contentHashCode() ?: 0)
|
|
return result
|
|
}
|
|
} |