commit | e0b0705d2a24ff45a32d5e38c706865b38662715 | [log] [tgz] |
---|---|---|
author | Simone Tripodi <simonetripodi@apache.org> | Thu Mar 21 08:27:25 2013 +0000 |
committer | Simone Tripodi <simonetripodi@apache.org> | Thu Mar 21 08:27:25 2013 +0000 |
tree | c4e935b08a795accb4a81cda01ded470599f1b06 | |
parent | af432b923deee7fb92680bc650d7f46ee510fe2e [diff] |
trivial: '3' is a magic number. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/fileupload/trunk@1459188 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java b/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java index da819f0..1179ca3 100644 --- a/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java +++ b/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
@@ -122,11 +122,13 @@ // CHECKSTYLE IGNORE MagicNumber FOR NEXT 1 LINE out.write((cache[1] << 4) | (cache[2] >> 2)); // 4 bits of b2 plus 4 bits of b3 outLen++; + // CHECKSTYLE IGNORE MagicNumber FOR NEXT 1 LINE if (cache[3] != PAD_BYTE) { // CHECKSTYLE IGNORE MagicNumber FOR NEXT 1 LINE out.write((cache[2] << 6) | cache[3]); // 2 bits of b3 plus 6 bits of b4 outLen++; } + // CHECKSTYLE IGNORE MagicNumber FOR NEXT 1 LINE } else if (cache[3] != PAD_BYTE) { // if byte 3 is pad, byte 4 must be pad too throw new IOException("Invalid Base64 input: incorrect padding"); }