7f88de1dba
White spaces in member lists are preserved
23 lines
459 B
Kotlin
23 lines
459 B
Kotlin
package test
|
|
|
|
class Test() {
|
|
public fun hashCode(): Int {
|
|
return System.identityHashCode(this)
|
|
}
|
|
|
|
public fun equals(o: Any): Boolean {
|
|
return this.identityEquals(o)
|
|
}
|
|
|
|
protected fun clone(): Any {
|
|
return super.clone()
|
|
}
|
|
|
|
public fun toString(): String {
|
|
return getJavaClass<Test>.getName() + '@' + Integer.toHexString(hashCode())
|
|
}
|
|
|
|
protected fun finalize() {
|
|
super.finalize()
|
|
}
|
|
} |