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
@@ -2,10 +2,10 @@ package test
class E1: Exception()
throws(E1::class) jvmOverloads
Throws(E1::class) jvmOverloads
fun one(a: Int = 1) {}
class One @throws(E1::class) constructor(a: Int = 1) {
throws(E1::class)
class One @Throws(E1::class) constructor(a: Int = 1) {
@Throws(E1::class)
fun one(a: Int = 1) {}
}