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 2026/07/16 10:09:22 UTC

(camel) branch fix/CAMEL-24111 created (now f58a5008560b)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch fix/CAMEL-24111
in repository https://gitbox.apache.org/repos/asf/camel.git


      at f58a5008560b CAMEL-24111: camel-xslt - Remove dead InputStream close logic in XsltBuilder

This branch includes the following new commits:

     new f58a5008560b CAMEL-24111: camel-xslt - Remove dead InputStream close logic in XsltBuilder

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: CAMEL-24111: camel-xslt - Remove dead InputStream close logic in XsltBuilder

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch fix/CAMEL-24111
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f58a5008560b0ebcecb870343c25e66e63606805
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jul 16 12:09:06 2026 +0200

    CAMEL-24111: camel-xslt - Remove dead InputStream close logic in XsltBuilder
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
    Signed-off-by: Claus Ibsen <cl...@gmail.com>
---
 .../src/main/java/org/apache/camel/component/xslt/XsltBuilder.java   | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/XsltBuilder.java b/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/XsltBuilder.java
index 30fc027fde20..a1b92ecc26b9 100644
--- a/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/XsltBuilder.java
+++ b/components/camel-xslt/src/main/java/org/apache/camel/component/xslt/XsltBuilder.java
@@ -49,7 +49,6 @@ import org.apache.camel.support.ExchangeHelper;
 import org.apache.camel.support.SynchronizationAdapter;
 import org.apache.camel.support.builder.xml.XMLConverterHelper;
 import org.apache.camel.util.FileUtil;
-import org.apache.camel.util.IOHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -112,8 +111,6 @@ public class XsltBuilder implements Processor {
         Message out = exchange.getOut();
         out.copyFrom(exchange.getIn());
 
-        // the underlying input stream, which we need to close to avoid locking files or other resources
-        InputStream is = null;
         try {
             Source source = getSourceHandlerFactory().getSource(exchange, this.source);
 
@@ -129,8 +126,6 @@ public class XsltBuilder implements Processor {
             resultHandler.setBody(out);
         } finally {
             releaseTransformer(transformer);
-            // IOHelper can handle if null
-            IOHelper.close(is);
         }
     }