Skip to content

Commit d4f9886

Browse files
committed
Javadoc
1 parent 5267ca5 commit d4f9886

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,12 +843,12 @@ boolean hasData(final Context context) { // package protected for access from I/
843843
* 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.
844844
*
845845
* @param arrayOctet byte array to test.
846-
* @param allowWSPad if {@code true}, then whitespace and PAD are also allowed.
846+
* @param allowWhitespacePad if {@code true}, then whitespace and PAD are also allowed.
847847
* @return {@code true} if all bytes are valid characters in the alphabet or if the byte array is empty; {@code false}, otherwise.
848848
*/
849-
public boolean isInAlphabet(final byte[] arrayOctet, final boolean allowWSPad) {
849+
public boolean isInAlphabet(final byte[] arrayOctet, final boolean allowWhitespacePad) {
850850
for (final byte octet : arrayOctet) {
851-
if (!isInAlphabet(octet) && (!allowWSPad || octet != pad && !Character.isWhitespace(octet))) {
851+
if (!isInAlphabet(octet) && (!allowWhitespacePad || octet != pad && !Character.isWhitespace(octet))) {
852852
return false;
853853
}
854854
}

0 commit comments

Comments
 (0)