Skip to content

Commit e74f180

Browse files
committed
Case 0 is exercised by tests, so is correct
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1382488 13f79535-47bb-0310-9956-ffa450edef68
1 parent dbb4fe7 commit e74f180

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/org/apache/commons/codec/binary

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void encode(byte[] in, int inPos, int inAvail, Context context) { // package pro
389389
final byte[] buffer = ensureBufferSize(encodeSize, context);
390390
final int savedPos = context.pos;
391391
switch (context.modulus) { // % 5
392-
case 0 : // TODO - correct?
392+
case 0 :
393393
break;
394394
case 1 : // Only 1 octet; take top 5 bits then remainder
395395
buffer[context.pos++] = encodeTable[(int)(context.lbitWorkArea >> 3) & MASK_5BITS]; // 8-1*5 = 3

0 commit comments

Comments
 (0)