Deprecate throws annotation in favor of Throws
This commit is contained in:
@@ -4,12 +4,12 @@ class E1: Exception()
|
||||
class E2: Exception()
|
||||
|
||||
class Test {
|
||||
throws()
|
||||
@Throws()
|
||||
fun none() {}
|
||||
|
||||
throws(E1::class)
|
||||
@Throws(E1::class)
|
||||
fun one() {}
|
||||
|
||||
throws(E1::class, E2::class)
|
||||
@Throws(E1::class, E2::class)
|
||||
fun two() {}
|
||||
}
|
||||
Reference in New Issue
Block a user