Skip to content

Commit 74bdc00

Browse files
committed
Fix spelling (codespell)
1 parent 27b228d commit 74bdc00

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public int read(final byte[] array, final int offset, final int len) throws IOEx
225225
* 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
226226
* keep trying.
227227
*
228-
* This is essentially an undocumented contract for InputStream implementors that want their code to work properly with java.io.InputStreamReader, since
228+
* This is essentially an undocumented contract for InputStream implementers that want their code to work properly with java.io.InputStreamReader, since
229229
* 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
230230
* being decoded was non-base32, so this while-loop enables proper interop with InputStreamReader for that scenario. ----- This is a fix for CODEC-101
231231
*/

src/main/java/org/apache/commons/codec/digest/HmacUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* byte[] key = {1,2,3,4}; // don't use this actual key!
4949
* String valueToDigest = "The quick brown fox jumps over the lazy dog";
5050
* byte[] hmac = new HmacUtils(HMAC_SHA_224, key).hmac(valueToDigest);
51-
* // Mac re-use
51+
* // Mac reuse
5252
* HmacUtils hm1 = new HmacUtils("HmacAlgoName", key); // use a valid name here!
5353
* String hexPom = hm1.hmacHex(new File("pom.xml"));
5454
* String hexNot = hm1.hmacHex(new File("NOTICE.txt"));

src/main/java/org/apache/commons/codec/digest/PureJavaCrc32.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public void reset() {
593593
resetCrc();
594594
}
595595

596-
// called by ctor, so must not be overrideable
596+
// called by ctor, so must not be overridable
597597
private void resetCrc() {
598598
crc = 0xffffffff;
599599
}

src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.junit.jupiter.api.Test;
3030
import org.junit.jupiter.api.Timeout;
3131

32-
@Timeout(3) // Try to avoid occaisional hang when testing
32+
@Timeout(3) // Try to avoid occasional hang when testing
3333
class Md5CryptTest {
3434

3535
@Test

0 commit comments

Comments
 (0)