Deprecate throws annotation in favor of Throws
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import java.lang.reflect.Constructor
|
||||
|
||||
object X {
|
||||
throws(Exception::class)
|
||||
Throws(Exception::class)
|
||||
fun <T> foo(constructor: Constructor<T>, args1: Array<Any>, args2: Array<Any>) {
|
||||
constructor.newInstance(*args1)
|
||||
constructor.newInstance(args1, args2)
|
||||
|
||||
Reference in New Issue
Block a user