camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: Polished the closing of the resources to be exactly the same way as the marshal method.
Date Sat, 11 May 2013 20:10:01 GMT
Updated Branches:
  refs/heads/master bee716481 -> 7340ce929


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/7340ce92
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7340ce92
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7340ce92

Branch: refs/heads/master
Commit: 7340ce9292a6e985dbde7552c477214affa84e3a
Parents: bee7164
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Sat May 11 22:09:57 2013 +0200
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Sat May 11 22:09:57 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/7340ce92/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;


Mime
View raw message