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.git


The following commit(s) were added to refs/heads/main by this push:
     new 4bec3579e601 CAMEL-24111: camel-xslt - Remove dead InputStream close 
logic in XsltBuilder
4bec3579e601 is described below

commit 4bec3579e601d095732e9c6961f913dfae32440d
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jul 16 17:12:35 2026 +0200

    CAMEL-24111: camel-xslt - Remove dead InputStream close logic in XsltBuilder
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    Signed-off-by: Claus Ibsen <[email protected]>
    Co-authored-by: Claude Opus 4.6 <[email protected]>
---
 .../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 3874c86e8df0..aa0fe1653ea8 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
@@ -50,7 +50,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;
 
@@ -116,8 +115,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);
 
@@ -133,8 +130,6 @@ public class XsltBuilder implements Processor {
             resultHandler.setBody(out);
         } finally {
             releaseTransformer(transformer, gen);
-            // IOHelper can handle if null
-            IOHelper.close(is);
         }
     }
 

Reply via email to