We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78f8b48 commit 3314be7Copy full SHA for 3314be7
src/main/kotlin/com/github/erosb/jsonsKema/SchemaClient.kt
@@ -44,7 +44,7 @@ fun interface SchemaClient {
44
fun getParsed(uri: URI): IJsonValue {
45
try {
46
val reader = BufferedReader(InputStreamReader(get(uri)))
47
- return JsonValue.parse(reader.readText(), uri)
+ return reader.use { JsonValue.parse(it.readText(), uri) }
48
} catch (ex: UncheckedIOException) {
49
throw SchemaDocumentLoadingException(uri, ex)
50
} catch (ex: JsonParseException) {
0 commit comments