blob: faf598d4f91ae445861841dc75bf30f48f1cec89 [file] [log] [blame] [edit]
class TryCatch {
fun catches() {
try {
body()
} catch (e: Throwable) {
catcher()
} finally {
finalizer()
}
}
fun body() {}
fun catcher() {}
fun finalizer() {}
}
class TryCatchAnnotations {
@java.lang.SuppressWarnings("Something")
fun catches() {
try {
body()
} catch (@java.lang.SuppressWarnings("Something") e: Throwable) {
catcher()
} finally {
finalizer()
}
}
fun body() {}
fun catcher() {}
fun finalizer() {}
}