Skip to content

Commit

Permalink
closed leaked streams
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-shustanov committed Oct 6, 2020
1 parent 3c44868 commit 7124b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/haulmont/cuba/cli/Messages.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Messages(clazz: Class<*>, messagesFileName: String = "messages.properties"
}.let {
clazz.getResource(it)?.openStream()?.reader()
?: throw RuntimeException("Unable to find messages file $messagesFileName for $clazz")
}.let { reader ->
}.use { reader ->
Properties().apply {
load(reader)
}
Expand Down

0 comments on commit 7124b98

Please sign in to comment.