camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1374332 - /camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
Date Fri, 17 Aug 2012 15:53:19 GMT
Author: davsclaus
Date: Fri Aug 17 15:53:18 2012
New Revision: 1374332

URL: http://svn.apache.org/viewvc?rev=1374332&view=rev
Log:
CAMEL-5507: Close stream after usage.

Modified:
    camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java

Modified: camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java?rev=1374332&r1=1374331&r2=1374332&view=diff
==============================================================================
--- camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
(original)
+++ camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java
Fri Aug 17 15:53:18 2012
@@ -298,7 +298,7 @@ public final class CamelBlueprintHelper 
         File file = new File(path);
         FileOutputStream fos = new FileOutputStream(file, true);
         try {
-            IOHelper.copy(bundle.build(), fos);
+            IOHelper.copyAndCloseInput(bundle.build(), fos);
         } finally {
             IOHelper.close(fos);
         }



Mime
View raw message