Fixed KT-5223 Converter from Java should convert "throws" in method declaration

#KT-5223 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-06-16 19:59:21 +04:00
parent eef4e548e5
commit 0912001560
13 changed files with 38 additions and 1 deletions
@@ -9,6 +9,7 @@ class Test() : Base() {
return super.equals(o)
}
throws(javaClass<CloneNotSupportedException>())
override fun clone(): Any {
return super.clone()
}
@@ -17,6 +18,7 @@ class Test() : Base() {
return super.toString()
}
throws(javaClass<Throwable>())
override fun finalize() {
super.finalize()
}
@@ -31,6 +33,7 @@ class Base() {
return super.equals(o)
}
throws(javaClass<CloneNotSupportedException>())
protected fun clone(): Any {
return super.clone()
}
@@ -39,6 +42,7 @@ class Base() {
return super.toString()
}
throws(javaClass<Throwable>())
protected fun finalize() {
super.finalize()
}