Migrate tests to new @Throws rules
This commit is contained in:
committed by
SvyatoslavScherbina
parent
c0c8ed4cb3
commit
1d70b5d625
@@ -255,13 +255,13 @@ fun multiply(int: Int, long: Long) = int * long
|
|||||||
class MyException : Exception()
|
class MyException : Exception()
|
||||||
|
|
||||||
open class BridgeBase {
|
open class BridgeBase {
|
||||||
@Throws
|
@Throws(MyException::class)
|
||||||
open fun foo1(): Any = Any()
|
open fun foo1(): Any = Any()
|
||||||
@Throws
|
@Throws(MyException::class)
|
||||||
open fun foo2(): Int = 42
|
open fun foo2(): Int = 42
|
||||||
@Throws
|
@Throws(MyException::class)
|
||||||
open fun foo3(): Unit = Unit
|
open fun foo3(): Unit = Unit
|
||||||
@Throws
|
@Throws(MyException::class)
|
||||||
open fun foo4(): Nothing? = throw IllegalStateException()
|
open fun foo4(): Nothing? = throw IllegalStateException()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user