[stdlib] Explicit visibility and return types: JVM

This commit is contained in:
Ilya Gorbunov
2023-09-19 13:47:21 +02:00
committed by Space Team
parent c77930c1ea
commit 2e030f213b
17 changed files with 31 additions and 31 deletions
@@ -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)
/**