Deprecate throws annotation in favor of Throws
This commit is contained in:
+2
-2
@@ -12,14 +12,14 @@ class X {
|
||||
return super.toString()
|
||||
}
|
||||
|
||||
throws(CloneNotSupportedException::class)
|
||||
Throws(CloneNotSupportedException::class)
|
||||
protected fun clone(): Any {
|
||||
return super.clone()
|
||||
}
|
||||
}
|
||||
|
||||
class Y : Thread() {
|
||||
throws(CloneNotSupportedException::class)
|
||||
Throws(CloneNotSupportedException::class)
|
||||
override fun clone(): Any {
|
||||
return super.clone()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user