commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-crypto git commit: Format nit.
Date Thu, 30 Jun 2016 17:39:36 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master 0c1f06550 -> de22a5b1e


Format nit.

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

Branch: refs/heads/master
Commit: de22a5b1e220dd0141a3f4803029d7aac378648a
Parents: 0c1f065
Author: Gary Gregory <ggregory@apache.org>
Authored: Thu Jun 30 10:39:34 2016 -0700
Committer: Gary Gregory <ggregory@apache.org>
Committed: Thu Jun 30 10:39:34 2016 -0700

----------------------------------------------------------------------
 .../org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/de22a5b1/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java
index 4302038..d2e4406 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCryptoRandom.java
@@ -180,11 +180,11 @@ class OpenSslJnaCryptoRandom extends Random implements CryptoRandom
{
     }
     
     private void throwOnError(int retVal) {  
-        if(retVal != 1) {
+        if (retVal != 1) {
             NativeLong err = OpenSslNativeJna.ERR_peek_error();
             String errdesc = OpenSslNativeJna.ERR_error_string(err, null);
             close();
-            throw new RuntimeException("return code "+retVal+" from OpenSSL. Err code is
"+err+": "+errdesc);
+            throw new RuntimeException("return code " + retVal + " from OpenSSL. Err code
is " + err + ": " + errdesc);
         }
     }
 }


Mime
View raw message