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-codec.git

commit 74bdc007b300dc8b06cb579517096d497540448d
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Apr 12 07:41:23 2026 -0400

    Fix spelling (codespell)
---
 .../java/org/apache/commons/codec/binary/BaseNCodecInputStream.java     | 2 +-
 src/main/java/org/apache/commons/codec/digest/HmacUtils.java            | 2 +-
 src/main/java/org/apache/commons/codec/digest/PureJavaCrc32.java        | 2 +-
 src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java         | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java 
b/src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java
index 2b10a9cc..c767e6b5 100644
--- a/src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java
+++ b/src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java
@@ -225,7 +225,7 @@ public class BaseNCodecInputStream<C extends BaseNCodec, T 
extends BaseNCodecInp
          * Rationale for while-loop on (readLen == 0): ----- 
Base32.readResults() usually returns > 0 or EOF (-1). In the rare case where it 
returns 0, we just
          * keep trying.
          *
-         * This is essentially an undocumented contract for InputStream 
implementors that want their code to work properly with 
java.io.InputStreamReader, since
+         * This is essentially an undocumented contract for InputStream 
implementers that want their code to work properly with 
java.io.InputStreamReader, since
          * the latter hates it when InputStream.read(byte[]) returns a zero. 
Unfortunately our readResults() call must return 0 if a large amount of the data
          * being decoded was non-base32, so this while-loop enables proper 
interop with InputStreamReader for that scenario. ----- This is a fix for 
CODEC-101
          */
diff --git a/src/main/java/org/apache/commons/codec/digest/HmacUtils.java 
b/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
index 9624ecc4..4411b001 100644
--- a/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
+++ b/src/main/java/org/apache/commons/codec/digest/HmacUtils.java
@@ -48,7 +48,7 @@ import org.apache.commons.codec.binary.StringUtils;
  * byte[] key = {1,2,3,4}; // don't use this actual key!
  * String valueToDigest = "The quick brown fox jumps over the lazy dog";
  * byte[] hmac = new HmacUtils(HMAC_SHA_224, key).hmac(valueToDigest);
- * // Mac re-use
+ * // Mac reuse
  * HmacUtils hm1 = new HmacUtils("HmacAlgoName", key); // use a valid name 
here!
  * String hexPom = hm1.hmacHex(new File("pom.xml"));
  * String hexNot = hm1.hmacHex(new File("NOTICE.txt"));
diff --git a/src/main/java/org/apache/commons/codec/digest/PureJavaCrc32.java 
b/src/main/java/org/apache/commons/codec/digest/PureJavaCrc32.java
index b388ee1e..e30fa1e4 100644
--- a/src/main/java/org/apache/commons/codec/digest/PureJavaCrc32.java
+++ b/src/main/java/org/apache/commons/codec/digest/PureJavaCrc32.java
@@ -593,7 +593,7 @@ public class PureJavaCrc32 implements Checksum {
         resetCrc();
     }
 
-    // called by ctor, so must not be overrideable
+    // called by ctor, so must not be overridable
     private void resetCrc() {
         crc = 0xffffffff;
     }
diff --git a/src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java 
b/src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java
index b7bdd4d1..c91e2433 100644
--- a/src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java
+++ b/src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java
@@ -29,7 +29,7 @@ import java.util.concurrent.ThreadLocalRandom;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.Timeout;
 
-@Timeout(3) // Try to avoid occaisional hang when testing
+@Timeout(3) // Try to avoid occasional hang when testing
 class Md5CryptTest {
 
     @Test

Reply via email to