Croway commented on code in PR #1423:
URL: 
https://github.com/apache/camel-spring-boot/pull/1423#discussion_r2046333260


##########
tooling/camel-spring-boot-generator-maven-plugin/src/main/java/org/apache/camel/springboot/maven/SpringBootStarterMojo.java:
##########
@@ -117,9 +117,10 @@ protected void executeAll() throws MojoExecutionException, 
MojoFailureException
 
     private void fixAdditionalDependencies(Document pom) throws Exception {
         Properties properties = new Properties();
-        InputStream is = 
getClass().getResourceAsStream("/spring-boot-fix-dependencies.properties");
-        properties.load(is);
-        is.close();
+        try (InputStream is = 
getClass().getResourceAsStream("/spring-boot-fix-dependencies.properties")) {
+            properties.load(is);
+            is.close();

Review Comment:
   I think that this can be removed, the try-with-resources closes the resource 
automatically



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to