21bc2887d2
Omit Unit return type Refactor handling of Unit type: extract separate object UnitType
18 lines
412 B
Kotlin
18 lines
412 B
Kotlin
package test
|
|
open class Test() {
|
|
public open fun hashCode() : Int {
|
|
return System.identityHashCode(this)
|
|
}
|
|
public open fun equals(o : Any?) : Boolean {
|
|
return this.identityEquals(o)
|
|
}
|
|
protected open fun clone() : Any? {
|
|
return super.clone()
|
|
}
|
|
public open fun toString() : String? {
|
|
return getJavaClass<Test>.getName() + '@' + Integer.toHexString(hashCode())
|
|
}
|
|
protected open fun finalize() {
|
|
super.finalize()
|
|
}
|
|
} |