Repository: commons-crypto
Updated Branches:
  refs/heads/master 276b4ba2d -> 2e3939f2f


Use longer lines.

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

Branch: refs/heads/master
Commit: 2e3939f2fdefaca68ca9b00cec6266b58973fcf4
Parents: 276b4ba
Author: Gary Gregory <[email protected]>
Authored: Thu Jun 30 11:14:41 2016 -0700
Committer: Gary Gregory <[email protected]>
Committed: Thu Jun 30 11:14:41 2016 -0700

----------------------------------------------------------------------
 .../org/apache/commons/crypto/jna/OpenSslJnaCipher.java   | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/2e3939f2/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java 
b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java
index 9d76817..1c8863b 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java
@@ -295,14 +295,11 @@ class OpenSslJnaCipher implements CryptoCipher {
     private static enum AlgorithmMode {
         AES_CTR, AES_CBC;
 
-        static AlgorithmMode get(String algorithm, String mode)
-                throws NoSuchAlgorithmException {
+        static AlgorithmMode get(String algorithm, String mode) throws 
NoSuchAlgorithmException {
             try {
                 return AlgorithmMode.valueOf(algorithm + "_" + mode);
             } catch (Exception e) {
-                throw new NoSuchAlgorithmException(
-                        "Doesn't support algorithm: " + algorithm
-                                + " and mode: " + mode);
+                throw new NoSuchAlgorithmException("Doesn't support algorithm: 
" + algorithm + " and mode: " + mode);
             }
         }
     }
@@ -314,8 +311,7 @@ class OpenSslJnaCipher implements CryptoCipher {
             try {
                 return Padding.valueOf(padding).ordinal();
             } catch (Exception e) {
-                throw new NoSuchPaddingException("Doesn't support padding: "
-                        + padding);
+                throw new NoSuchPaddingException("Doesn't support padding: " + 
padding);
             }
         }
     }

Reply via email to