Java to Kotlin converter: no more 2 conversion modes for each test, just a few tests to test non-standard settings
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
package test
|
||||
|
||||
open class Test() {
|
||||
public open fun hashCode(): Int {
|
||||
class Test() {
|
||||
public fun hashCode(): Int {
|
||||
return System.identityHashCode(this)
|
||||
}
|
||||
|
||||
public open fun equals(o: Any?): Boolean {
|
||||
public fun equals(o: Any): Boolean {
|
||||
return this.identityEquals(o)
|
||||
}
|
||||
|
||||
protected open fun clone(): Any? {
|
||||
protected fun clone(): Any {
|
||||
return super.clone()
|
||||
}
|
||||
|
||||
public open fun toString(): String? {
|
||||
public fun toString(): String {
|
||||
return getJavaClass<Test>.getName() + '@' + Integer.toHexString(hashCode())
|
||||
}
|
||||
|
||||
protected open fun finalize() {
|
||||
protected fun finalize() {
|
||||
super.finalize()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user