Converter:

Functions are final by default in plugin mode
This commit is contained in:
Pavel V. Talanov
2013-11-19 16:52:57 +04:00
parent bf4e27b152
commit d98d8cfa7f
88 changed files with 168 additions and 162 deletions
@@ -17,19 +17,19 @@ super.finalize()
}
}
class Base() {
public open fun hashCode() : Int {
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<Base>.getName() + '@' + Integer.toHexString(hashCode())
}
protected open fun finalize() {
protected fun finalize() {
super.finalize()
}
}
@@ -1,5 +1,5 @@
class A() {
open fun a() {
fun a() {
}
}
class B() : A() {
@@ -1,5 +1,5 @@
class A() {
open fun foo() {
fun foo() {
}
}
class B() : A() {
@@ -1,18 +1,18 @@
package test
class Test() {
public open fun hashCode() : Int {
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()
}
}
@@ -1,6 +1,6 @@
package demo
class Test() {
open fun test(vararg var args : Any) {
fun test(vararg var args : Any) {
args = array<Int>(1, 2, 3)
}
}
@@ -1,6 +1,6 @@
package demo
class Test() {
open fun test(var i : Int) : Int {
fun test(var i : Int) : Int {
i = 10
return i + 20
}