diff --git a/build.gradle b/build.gradle index 80d82d1..e910c1f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '1.8.10' + ext.kotlin_version = '1.8.22' repositories { mavenCentral() diff --git a/src/main/kotlin/com/commit451/okyo/Okyo.kt b/src/main/kotlin/com/commit451/okyo/Okyo.kt index 2cfacde..c9d0bed 100644 --- a/src/main/kotlin/com/commit451/okyo/Okyo.kt +++ b/src/main/kotlin/com/commit451/okyo/Okyo.kt @@ -1,3 +1,5 @@ +@file:Suppress("unused") + package com.commit451.okyo import okio.buffer @@ -69,7 +71,7 @@ object Okyo { @JvmStatic @Throws(IOException::class) - private fun writeFileToOutputStream(fileToReadFrom: File, outputStream: OutputStream) { + inline fun writeFileToOutputStream(fileToReadFrom: File, outputStream: OutputStream) { val sink = outputStream.sink().buffer() val source = fileToReadFrom.source().buffer() sink.writeAll(source)