Suppress a couple more warnings

This commit is contained in:
Ilya Gorbunov
2020-05-13 15:59:15 +03:00
parent bf21e1282a
commit d37c412f76
2 changed files with 4 additions and 1 deletions
@@ -33,6 +33,7 @@ internal open class PlatformImplementations {
}
public open fun getSuppressed(exception: Throwable): List<Throwable> {
@Suppress("UNCHECKED_CAST")
return ReflectThrowable.getSuppressed?.invoke(exception)?.let { (it as Array<Throwable>).asList() }
?: emptyList()
}