Skip to content

Commit 7b6040c

Browse files
committed
Comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1064418 13f79535-47bb-0310-9956-ffa450edef68
1 parent effccf3 commit 7b6040c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public Base32(int lineLength, byte[] lineSeparator, boolean useHex) {
242242
// Must be done after initialising the tables
243243
if (containsAlphabetOrPad(lineSeparator)) {
244244
String sep = StringUtils.newStringUtf8(lineSeparator);
245-
throw new IllegalArgumentException("lineSeperator must not contain Base32 characters: [" + sep + "]");
245+
throw new IllegalArgumentException("lineSeparator must not contain Base32 characters: [" + sep + "]");
246246
}
247247
this.encodeSize = BYTES_PER_ENCODED_BLOCK + lineSeparator.length;
248248
this.lineSeparator = new byte[lineSeparator.length];
@@ -349,7 +349,7 @@ void encode(byte[] in, int inPos, int inAvail) { // package protected for access
349349
if (b < 0) {
350350
b += 256;
351351
}
352-
bitWorkArea = (bitWorkArea << 8) + b; // ??
352+
bitWorkArea = (bitWorkArea << 8) + b; // BITS_PER_BYTE
353353
if (0 == modulus) { // we have enough bytes to create our output
354354
buffer[pos++] = encodeTable[(int)(bitWorkArea >> 35) & MASK_5BITS];
355355
buffer[pos++] = encodeTable[(int)(bitWorkArea >> 30) & MASK_5BITS];

0 commit comments

Comments
 (0)