File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/codec/binary Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments