Skip to content

Commit 99cf6b7

Browse files
committed
Javadoc and exception messages: "base 32" -> "Base32".
1 parent 2df7b9a commit 99cf6b7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ public boolean isInAlphabet(final byte octet) {
742742
}
743743

744744
/**
745-
* Validates whether decoding the final trailing character is possible in the context of the set of possible base 32 values.
745+
* Validates whether decoding the final trailing character is possible in the context of the set of possible Base32 values.
746746
* <p>
747747
* The character is valid if the lower bits within the provided mask are zero. This is used to test the final trailing base-32 digit is zero in the bits
748748
* that will be discarded.
@@ -756,7 +756,7 @@ private void validateCharacter(final long emptyBitsMask, final Context context)
756756
// Use the long bit work area
757757
if (isStrictDecoding() && (context.lbitWorkArea & emptyBitsMask) != 0) {
758758
throw new IllegalArgumentException("Strict decoding: Last encoded character (before the paddings if any) is a valid " +
759-
"base 32 alphabet but not a possible encoding. Expected the discarded bits from the character to be zero.");
759+
"Base32 alphabet but not a possible encoding. Expected the discarded bits from the character to be zero.");
760760
}
761761
}
762762

@@ -768,7 +768,7 @@ private void validateCharacter(final long emptyBitsMask, final Context context)
768768
private void validateTrailingCharacters() {
769769
if (isStrictDecoding()) {
770770
throw new IllegalArgumentException("Strict decoding: Last encoded character(s) (before the paddings if any) are valid " +
771-
"base 32 alphabet but not a possible encoding. Decoding requires either 2, 4, 5, or 7 trailing 5-bit characters to create bytes.");
771+
"Base32 alphabet but not a possible encoding. Decoding requires either 2, 4, 5, or 7 trailing 5-bit characters to create bytes.");
772772
}
773773
}
774774
}

src/test/java/org/apache/commons/codec/binary/Base32Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class Base32Test {
160160
// @formatter:on
161161

162162
/**
163-
* Test base 32 decoding of the final trailing bits. Trailing encoded bytes
163+
* Test Base32 decoding of the final trailing bits. Trailing encoded bytes
164164
* cannot fit exactly into 5-bit characters so the last character has a limited
165165
* alphabet where the final bits are zero. This asserts that illegal final
166166
* characters throw an exception when decoding.

0 commit comments

Comments
 (0)