You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/07/06 21:53:36 UTC
commons-crypto git commit: Unnecessary extra check
Repository: commons-crypto
Updated Branches:
refs/heads/master 93b765eca -> af71a9693
Unnecessary extra check
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/af71a969
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/af71a969
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/af71a969
Branch: refs/heads/master
Commit: af71a9693cbdd303dc0c4f0e73e6c4aee800cb63
Parents: 93b765e
Author: Sebb <se...@apache.org>
Authored: Wed Jul 6 22:53:32 2016 +0100
Committer: Sebb <se...@apache.org>
Committed: Wed Jul 6 22:53:32 2016 +0100
----------------------------------------------------------------------
.../apache/commons/crypto/cipher/CryptoCipherFactoryTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/af71a969/src/test/java/org/apache/commons/crypto/cipher/CryptoCipherFactoryTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/cipher/CryptoCipherFactoryTest.java b/src/test/java/org/apache/commons/crypto/cipher/CryptoCipherFactoryTest.java
index 5776b24..d53d3bf 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/CryptoCipherFactoryTest.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/CryptoCipherFactoryTest.java
@@ -30,7 +30,7 @@ public class CryptoCipherFactoryTest {
CryptoCipher defaultCipher = CryptoCipherFactory
.getCryptoCipher("AES/CBC/NoPadding");
final String name = defaultCipher.getClass().getName();
- if (Crypto.isNativeCodeLoaded() && OpenSsl.getLoadingFailureReason() == null) {
+ if (OpenSsl.getLoadingFailureReason() == null) {
Assert.assertEquals(OpenSslCipher.class.getName(), name);
} else {
Assert.assertEquals(JceCipher.class.getName(), name);
@@ -44,7 +44,7 @@ public class CryptoCipherFactoryTest {
CryptoCipher defaultCipher = CryptoCipherFactory.getCryptoCipher(
"AES/CBC/NoPadding", properties);
final String name = defaultCipher.getClass().getName();
- if (Crypto.isNativeCodeLoaded() && OpenSsl.getLoadingFailureReason() == null) {
+ if (OpenSsl.getLoadingFailureReason() == null) {
Assert.assertEquals(OpenSslCipher.class.getName(), name);
} else {
Assert.assertEquals(JceCipher.class.getName(), name);