commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [2/2] commons-crypto git commit: Revert "try-with-resources."
Date Thu, 30 Jun 2016 00:21:47 GMT
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 <ggregory@apache.org>
Authored: Wed Jun 29 17:21:14 2016 -0700
Committer: Gary Gregory <ggregory@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


Mime
View raw message