commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject commons-crypto git commit: Fix the name to make it clearer
Date Wed, 22 Jun 2016 09:14:42 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master bbc4aaa06 -> 169c76e9f


Fix the name to make it clearer

Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/169c76e9
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/169c76e9
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/169c76e9

Branch: refs/heads/master
Commit: 169c76e9f6c63adb4b92aec0c053e94c0ad248dc
Parents: bbc4aaa
Author: Sebb <sebb@apache.org>
Authored: Wed Jun 22 10:14:38 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Wed Jun 22 10:14:38 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java | 2 +-
 .../java/org/apache/commons/crypto/random/CryptoRandomFactory.java | 2 +-
 src/main/java/org/apache/commons/crypto/utils/Utils.java           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/169c76e9/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
index 3509162..307c90a 100644
--- a/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
+++ b/src/main/java/org/apache/commons/crypto/cipher/CryptoCipherFactory.java
@@ -69,7 +69,7 @@ public class CryptoCipherFactory {
 
         if (cipher != null) {
             return cipher;
-        } else if (Utils.isFallbackEnable(props)) {
+        } else if (Utils.isFallbackEnabled(props)) {
             return new JceCipher(props,transformation);
         } else {
             errorMessage.append(" is not available or transformation " +

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/169c76e9/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
index a97a853..a9d0ce2 100644
--- a/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
+++ b/src/main/java/org/apache/commons/crypto/random/CryptoRandomFactory.java
@@ -83,7 +83,7 @@ public class CryptoRandomFactory {
 
         if (random != null) {
             return random;
-        } else if (Utils.isFallbackEnable(props)) {
+        } else if (Utils.isFallbackEnabled(props)) {
             return  new JavaCryptoRandom(props);
         } else {
             throw new GeneralSecurityException(errorMessage.toString());

http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/169c76e9/src/main/java/org/apache/commons/crypto/utils/Utils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/Utils.java b/src/main/java/org/apache/commons/crypto/utils/Utils.java
index f1c43ad..8886377 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Utils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java
@@ -379,7 +379,7 @@ public final class Utils {
      *        properties.
      * @return true if Fallback is enabled when native failed.
      */
-    public static boolean isFallbackEnable(Properties props) {
+    public static boolean isFallbackEnabled(Properties props) {
         String enableFallback = props.getProperty(ConfigurationKeys.
                 COMMONS_CRYPTO_ENABLE_FALLBACK_ON_NATIVE_FAILED_KEY);
         if (enableFallback == null || enableFallback.isEmpty()) {


Mime
View raw message