Updated Branches: refs/heads/camel-2.10.x d2ef23471 -> 9d31ac48c
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/9d31ac48 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9d31ac48 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9d31ac48 Branch: refs/heads/camel-2.10.x Commit: 9d31ac48c2b1e23c9cf89cce8e3d068bb6386b0c Parents: d2ef234 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 23:19:30 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/9d31ac48/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;