You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/codec/binary/Base32.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -742,7 +742,7 @@ public boolean isInAlphabet(final byte octet) {
742
742
}
743
743
744
744
/**
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.
746
746
* <p>
747
747
* 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
748
748
* that will be discarded.
@@ -756,7 +756,7 @@ private void validateCharacter(final long emptyBitsMask, final Context context)
756
756
// Use the long bit work area
757
757
if (isStrictDecoding() && (context.lbitWorkArea & emptyBitsMask) != 0) {
758
758
thrownewIllegalArgumentException("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.");
760
760
}
761
761
}
762
762
@@ -768,7 +768,7 @@ private void validateCharacter(final long emptyBitsMask, final Context context)
768
768
privatevoidvalidateTrailingCharacters() {
769
769
if (isStrictDecoding()) {
770
770
thrownewIllegalArgumentException("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.");
0 commit comments