Updated Branches:
  refs/heads/camel-2.11.x b2d2ec80a -> cf3198722

Polished the closing of the resources to be exactly the same way as the
marshal method.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cf319872
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cf319872
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cf319872

Branch: refs/heads/camel-2.11.x
Commit: cf31987223e764821cdb46224ea79acc623223c4
Parents: b2d2ec8
Author: Babak Vahdat <bvah...@apache.org>
Authored: Sat May 11 22:09:57 2013 +0200
Committer: Babak Vahdat <bvah...@apache.org>
Committed: Sat May 11 22:51:13 2013 +0200

----------------------------------------------------------------------
 .../camel/converter/crypto/CryptoDataFormat.java   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/cf319872/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
----------------------------------------------------------------------
diff --git 
a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
 
b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
index 4f7b2eb..f469980 100644
--- 
a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
+++ 
b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
@@ -165,7 +165,8 @@ public class CryptoDataFormat implements DataFormat {
                 hmac.validate();
                 unmarshalled = plaintextStream.toByteArray();
             } finally {
-                IOHelper.close(cipherStream,  plaintextStream);
+                IOHelper.close(cipherStream, "cipher", LOG);
+                IOHelper.close(plaintextStream, "plaintext", LOG);
             }
         }
         return unmarshalled;

Reply via email to