You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/01/28 02:49:46 UTC
svn commit: r1064418 -
/commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base32.java
Author: sebb
Date: Fri Jan 28 01:49:45 2011
New Revision: 1064418
URL: http://svn.apache.org/viewvc?rev=1064418&view=rev
Log:
Comments
Modified:
commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base32.java
Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base32.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base32.java?rev=1064418&r1=1064417&r2=1064418&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base32.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/Base32.java Fri Jan 28 01:49:45 2011
@@ -242,7 +242,7 @@ public class Base32 extends BaseNCodec {
// Must be done after initialising the tables
if (containsAlphabetOrPad(lineSeparator)) {
String sep = StringUtils.newStringUtf8(lineSeparator);
- throw new IllegalArgumentException("lineSeperator must not contain Base32 characters: [" + sep + "]");
+ throw new IllegalArgumentException("lineSeparator must not contain Base32 characters: [" + sep + "]");
}
this.encodeSize = BYTES_PER_ENCODED_BLOCK + lineSeparator.length;
this.lineSeparator = new byte[lineSeparator.length];
@@ -349,7 +349,7 @@ public class Base32 extends BaseNCodec {
if (b < 0) {
b += 256;
}
- bitWorkArea = (bitWorkArea << 8) + b; // ??
+ bitWorkArea = (bitWorkArea << 8) + b; // BITS_PER_BYTE
if (0 == modulus) { // we have enough bytes to create our output
buffer[pos++] = encodeTable[(int)(bitWorkArea >> 35) & MASK_5BITS];
buffer[pos++] = encodeTable[(int)(bitWorkArea >> 30) & MASK_5BITS];