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 e0d6fe0 Fix formatting e0d6fe0 is described below commit e0d6fe0f601106278a37f22ac49d2e118b834478 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jul 8 09:20:07 2023 -0400 Fix formatting --- src/main/java/org/apache/commons/crypto/cipher/OpenSslCipher.java | 2 +- src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java | 2 +- src/main/java/org/apache/commons/crypto/utils/Utils.java | 2 +- .../org/apache/commons/crypto/examples/CipherByteBufferExample.java | 2 +- .../java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/crypto/cipher/OpenSslCipher.java b/src/main/java/org/apache/commons/crypto/cipher/OpenSslCipher.java index 71f7fd2..e7e0ffb 100644 --- a/src/main/java/org/apache/commons/crypto/cipher/OpenSslCipher.java +++ b/src/main/java/org/apache/commons/crypto/cipher/OpenSslCipher.java @@ -97,7 +97,7 @@ final class OpenSslCipher implements CryptoCipher { public int doFinal(final byte[] input, final int inputOffset, final int inputLen, final byte[] output, final int outputOffset) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException { - return openSslEngine.doFinal(input, inputOffset, inputLen, output,outputOffset); + return openSslEngine.doFinal(input, inputOffset, inputLen, output, outputOffset); } /** diff --git a/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java b/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java index 2802911..d41ddde 100644 --- a/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java +++ b/src/main/java/org/apache/commons/crypto/stream/CryptoInputStream.java @@ -493,7 +493,7 @@ public class CryptoInputStream extends InputStream implements ReadableByteChanne /** * Overrides the {@link InputStream#markSupported()}. * - * @return false,the {@link CtrCryptoInputStream} don't support the mark + * @return false, the {@link CtrCryptoInputStream} don't support the mark * method. */ @Override 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 0f6ecbe..fd840dc 100644 --- a/src/main/java/org/apache/commons/crypto/utils/Utils.java +++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java @@ -211,7 +211,7 @@ public final class Utils { /** * Splits class names sequence into substrings, Trim each substring into an - * entry,and returns an list of the entries. + * entry, and returns an list of the entries. * * @param clazzNames a string consist of a list of the entries joined by a * delimiter, may be null or empty in which case an empty list is returned. diff --git a/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java b/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java index a6de0d2..4f028b9 100644 --- a/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java +++ b/src/test/java/org/apache/commons/crypto/examples/CipherByteBufferExample.java @@ -78,7 +78,7 @@ public class CipherByteBufferExample { // Show the data is there System.out.println("inBuffer=" + asString(inBuffer)); - // Initializes the cipher with ENCRYPT_MODE,key and iv. + // Initializes the cipher with ENCRYPT_MODE, key and iv. encipher.init(Cipher.ENCRYPT_MODE, key, iv); // Continues a multiple-part encryption/decryption operation for byte buffer. updateBytes = encipher.update(inBuffer, outBuffer); diff --git a/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java b/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java index 27e2af5..fa2d671 100644 --- a/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java +++ b/src/test/java/org/apache/commons/crypto/stream/AbstractCipherStreamTest.java @@ -329,7 +329,7 @@ public abstract class AbstractCipherStreamTest { assertEquals(ex.getMessage(),"Illegal parameters"); // Test Invalid Key - assertThrows(IOException.class, () -> newCryptoInputStream(transformation,props, new ByteArrayInputStream(encData), + assertThrows(IOException.class, () -> newCryptoInputStream(transformation, props, new ByteArrayInputStream(encData), AES.newSecretKeySpec(new byte[10]), new IvParameterSpec(iv), withChannel)); // Test Invalid Key assertThrows(IOException.class, () -> newCryptoOutputStream(transformation, props, baos, new byte[10],