jvmMain.kotlinx.io.core.CloseableJVM.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-io-jvm Show documentation
Show all versions of kotlinx-io-jvm Show documentation
IO support libraries for Kotlin
package kotlinx.io.core
import java.lang.reflect.*
actual typealias Closeable = java.io.Closeable
@PublishedApi
internal actual fun Throwable.addSuppressedInternal(other: Throwable) {
AddSuppressedMethod?.invoke(this, other)
}
private val AddSuppressedMethod: Method? by lazy {
try {
Throwable::class.java.getMethod("addSuppressed", Throwable::class.java)
} catch (t: Throwable) {
null
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy