Deprecate throws annotation in favor of Throws

This commit is contained in:
Denis Zharkov
2015-09-01 17:34:20 +03:00
parent 9254b1b461
commit 2b76941733
21 changed files with 44 additions and 44 deletions
@@ -11,7 +11,7 @@ class Test : Base() {
return super.equals(o)
}
throws(CloneNotSupportedException::class)
Throws(CloneNotSupportedException::class)
override fun clone(): Any {
return super.clone()
}
@@ -20,7 +20,7 @@ class Test : Base() {
return super.toString()
}
throws(Throwable::class)
Throws(Throwable::class)
override fun finalize() {
super.finalize()
}
@@ -35,7 +35,7 @@ open class Base {
return super.equals(o)
}
throws(CloneNotSupportedException::class)
Throws(CloneNotSupportedException::class)
protected open fun clone(): Any {
return super.clone()
}
@@ -44,7 +44,7 @@ open class Base {
return super.toString()
}
throws(Throwable::class)
Throws(Throwable::class)
protected open fun finalize() {
super.finalize()
}