Move more logic of 'use' into 'closeSuppressed', rename the latter to 'closeFinally', that will result in more compact inline call expansions.
This commit is contained in:
@@ -19,7 +19,7 @@ internal open class PlatformImplementations {
|
||||
@SinceKotlin("1.1")
|
||||
@PublishedApi
|
||||
@Deprecated("Provided for binary compatibility", level = DeprecationLevel.HIDDEN)
|
||||
internal fun platformCloseSuppressed(instance: Closeable, cause: Throwable) = instance.closeSuppressed(cause)
|
||||
internal fun platformCloseSuppressed(instance: Closeable, cause: Throwable) = instance.closeFinally(cause)
|
||||
|
||||
|
||||
@JvmField
|
||||
|
||||
Reference in New Issue
Block a user