You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/06/30 00:21:47 UTC
[2/2] commons-crypto git commit: Revert "try-with-resources."
Revert "try-with-resources."
This reverts commit 9ecfae271b00a66a5ca2618b32aa59e96a165473.
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/7652bfbd
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/7652bfbd
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/7652bfbd
Branch: refs/heads/master
Commit: 7652bfbd67faf4db61269c01979dcb58fa87b49b
Parents: 67e3639
Author: Gary Gregory <gg...@apache.org>
Authored: Wed Jun 29 17:21:14 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Wed Jun 29 17:21:14 2016 -0700
----------------------------------------------------------------------
.../org/apache/commons/crypto/cipher/AbstractCipherTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/7652bfbd/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java b/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
index 3da0511..affca80 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/AbstractCipherTest.java
@@ -75,9 +75,8 @@ public abstract class AbstractCipherTest {
@Test
public void closeTestNoInit() throws Exception {
- try (CryptoCipher enc = getCipher(transformations[0])) {
- // nothing
- }
+ CryptoCipher enc = getCipher(transformations[0]);
+ enc.close();
}
@Test