Migrate tests to new @Throws rules

This commit is contained in:
Svyatoslav Scherbina
2020-02-04 13:19:07 +03:00
committed by SvyatoslavScherbina
parent c0c8ed4cb3
commit 1d70b5d625
@@ -255,13 +255,13 @@ fun multiply(int: Int, long: Long) = int * long
class MyException : Exception()
open class BridgeBase {
@Throws
@Throws(MyException::class)
open fun foo1(): Any = Any()
@Throws
@Throws(MyException::class)
open fun foo2(): Int = 42
@Throws
@Throws(MyException::class)
open fun foo3(): Unit = Unit
@Throws
@Throws(MyException::class)
open fun foo4(): Nothing? = throw IllegalStateException()
}