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
The following commit(s) were added to refs/heads/master by this push:
new d4f98869 Javadoc
d4f98869 is described below
commit d4f988691602710928ab9e30fbf4ca0653c726ee
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Apr 4 08:28:06 2026 -0400
Javadoc
---
src/main/java/org/apache/commons/codec/binary/BaseNCodec.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
b/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
index 62c53995..0bf7870d 100644
--- a/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
+++ b/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
@@ -843,12 +843,12 @@ public abstract class BaseNCodec implements
BinaryEncoder, BinaryDecoder {
* Tests a given byte array to see if it contains only valid characters
within the alphabet. The method optionally treats whitespace and pad as valid.
*
* @param arrayOctet byte array to test.
- * @param allowWSPad if {@code true}, then whitespace and PAD are also
allowed.
+ * @param allowWhitespacePad if {@code true}, then whitespace and PAD are
also allowed.
* @return {@code true} if all bytes are valid characters in the alphabet
or if the byte array is empty; {@code false}, otherwise.
*/
- public boolean isInAlphabet(final byte[] arrayOctet, final boolean
allowWSPad) {
+ public boolean isInAlphabet(final byte[] arrayOctet, final boolean
allowWhitespacePad) {
for (final byte octet : arrayOctet) {
- if (!isInAlphabet(octet) && (!allowWSPad || octet != pad &&
!Character.isWhitespace(octet))) {
+ if (!isInAlphabet(octet) && (!allowWhitespacePad || octet != pad
&& !Character.isWhitespace(octet))) {
return false;
}
}