aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/DokkaVersion.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/main/kotlin/DokkaVersion.kt b/core/src/main/kotlin/DokkaVersion.kt
index 410058f3..58dd0310 100644
--- a/core/src/main/kotlin/DokkaVersion.kt
+++ b/core/src/main/kotlin/DokkaVersion.kt
@@ -4,7 +4,8 @@ import java.util.*
object DokkaVersion {
val version: String by lazy {
- val stream = javaClass.getResourceAsStream("/META-INF/dokka/dokka-version.properties")
- Properties().apply { load(stream) }.getProperty("dokka-version")
+ javaClass.getResourceAsStream("/META-INF/dokka/dokka-version.properties").use { stream ->
+ Properties().apply { load(stream) }.getProperty("dokka-version")
+ }
}
}