You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/08/27 00:18:31 UTC

[commons-crypto] branch master updated: Standardize on US English spelling.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new 27f7896  Standardize on US English spelling.
27f7896 is described below

commit 27f789636e63a62320aea6659480ad97e1f7876b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Aug 26 20:18:21 2020 -0400

    Standardize on US English spelling.
---
 src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java       | 4 ++--
 .../java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java   | 2 +-
 .../java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java   | 2 +-
 .../org/apache/commons/crypto/random/OpenSslCryptoRandom.java     | 8 ++++----
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java b/src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java
index eb4c592..bb2c403 100644
--- a/src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java
+++ b/src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java
@@ -109,7 +109,7 @@ final class OpenSsl {
     /**
      * Gets the failure reason when loading OpenSsl native.
      *
-     * @return the failure reason; null if it was loaded and initialised successfully
+     * @return the failure reason; null if it was loaded and initialized successfully
      */
     public static Throwable getLoadingFailureReason() {
         return loadingFailureReason;
@@ -142,7 +142,7 @@ final class OpenSsl {
      *         specified algorithm.
      * @throws NoSuchPaddingException if {@code transformation} contains a
      *         padding scheme that is not available.
-     * @throws IllegalStateException if native code cannot be initialised
+     * @throws IllegalStateException if native code cannot be initialized
      */
     public static OpenSsl getInstance(final String transformation)
             throws NoSuchAlgorithmException, NoSuchPaddingException {
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java b/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java
index 10d30e5..4cdec73 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSsl10XNativeJna.java
@@ -267,7 +267,7 @@ class OpenSsl10XNativeJna {
      * @param e
      *            engine reference
      * @return zero if the ENGINE was not already operational and couldn't be successfully
-     *         initialised
+     *         initialized
      */
     public static native int ENGINE_init(PointerByReference e);
 
diff --git a/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java b/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java
index 58d2a48..73c79a8 100644
--- a/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java
+++ b/src/main/java/org/apache/commons/crypto/jna/OpenSsl11XNativeJna.java
@@ -224,7 +224,7 @@ class OpenSsl11XNativeJna {
      * @param e
      *            engine reference
      * @return zero if the ENGINE was not already operational and couldn't be successfully
-     *         initialised
+     *         initialized
      */
     public static native int ENGINE_init(PointerByReference e);
 
diff --git a/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandom.java b/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandom.java
index 4ed9c22..a8c9340 100644
--- a/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandom.java
+++ b/src/main/java/org/apache/commons/crypto/random/OpenSslCryptoRandom.java
@@ -66,9 +66,9 @@ class OpenSslCryptoRandom extends Random implements CryptoRandom {
     }
 
     /**
-     * Judges whether native library was successfully loaded and initialised.
+     * Judges whether native library was successfully loaded and initialized.
      *
-     * @return true if library was loaded and initialised
+     * @return true if library was loaded and initialized
      */
     public static boolean isNativeCodeEnabled() {
         return nativeEnabled;
@@ -78,14 +78,14 @@ class OpenSslCryptoRandom extends Random implements CryptoRandom {
      * Constructs a {@link OpenSslCryptoRandom}.
      *
      * @param props the configuration properties - not used
-     * @throws GeneralSecurityException if the native library could not be initialised successfully
+     * @throws GeneralSecurityException if the native library could not be initialized successfully
      */
     // N.B. this class is not public/protected so does not appear in the main Javadoc
     // Please ensure that property use is documented in the enum CryptoRandomFactory.RandomProvider
     public OpenSslCryptoRandom(final Properties props) throws GeneralSecurityException { // NOPMD
         if (!nativeEnabled) {
             if (initException != null) {
-                throw new GeneralSecurityException("Native library could not be initialised", initException);
+                throw new GeneralSecurityException("Native library could not be initialized", initException);
             }
             throw new GeneralSecurityException("Native library is not loaded");
         }