[stdlib] Explicit visibility and return types: JVM
This commit is contained in:
committed by
Space Team
parent
c77930c1ea
commit
2e030f213b
@@ -41,7 +41,7 @@ public actual inline fun <T : java.lang.AutoCloseable?, R> T.use(block: (T) -> R
|
||||
|
||||
@SinceKotlin("1.2")
|
||||
@PublishedApi
|
||||
internal fun java.lang.AutoCloseable?.closeFinally(cause: Throwable?) = when {
|
||||
internal fun java.lang.AutoCloseable?.closeFinally(cause: Throwable?): Unit = when {
|
||||
this == null -> {}
|
||||
cause == null -> close()
|
||||
else ->
|
||||
|
||||
@@ -482,7 +482,7 @@ public inline fun Path.deleteExisting() {
|
||||
@WasExperimental(ExperimentalPathApi::class)
|
||||
@Throws(IOException::class)
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun Path.deleteIfExists() =
|
||||
public inline fun Path.deleteIfExists(): Boolean =
|
||||
Files.deleteIfExists(this)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user