You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/06/18 08:28:40 UTC
[camel-spring-boot] branch main updated: close stream after use
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 5275d0e0ceb close stream after use
5275d0e0ceb is described below
commit 5275d0e0ceb4bbdf172b8e8e63492eeac390474c
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Jun 18 10:28:30 2022 +0200
close stream after use
---
.../org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java b/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java
index 620dc98b4ac..3d866c39d05 100644
--- a/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java
+++ b/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java
@@ -24,6 +24,7 @@ import java.util.List;
import org.apache.camel.catalog.CamelCatalog;
import org.apache.camel.catalog.RuntimeProvider;
import org.apache.camel.catalog.impl.CatalogHelper;
+import org.apache.camel.util.IOHelper;
/**
* A Spring Boot based {@link RuntimeProvider} which only includes the supported Camel components, data formats, and languages
@@ -115,6 +116,8 @@ public class SpringBootRuntimeProvider implements RuntimeProvider {
CatalogHelper.loadLines(is, names);
} catch (IOException e) {
// ignore
+ } finally {
+ IOHelper.close(is);
}
}
return names;