commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1456645 - /commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
Date Thu, 14 Mar 2013 20:15:35 GMT
Author: simonetripodi
Date: Thu Mar 14 20:15:35 2013
New Revision: 1456645

URL: http://svn.apache.org/r1456645
Log:
checkstyle: Variable 'encodingTable' must be private and have accessor methods

Modified:
    commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java

Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java?rev=1456645&r1=1456644&r2=1456645&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
(original)
+++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
Thu Mar 14 20:15:35 2013
@@ -24,7 +24,7 @@ import java.io.OutputStream;
  */
 final class Base64Decoder {
 
-    protected final byte[] encodingTable = {
+    protected final byte[] ENCODING_TABLE = {
         (byte)'A', (byte)'B', (byte)'C', (byte)'D', (byte)'E', (byte)'F', (byte)'G',
         (byte)'H', (byte)'I', (byte)'J', (byte)'K', (byte)'L', (byte)'M', (byte)'N',
         (byte)'O', (byte)'P', (byte)'Q', (byte)'R', (byte)'S', (byte)'T', (byte)'U',
@@ -47,8 +47,8 @@ final class Base64Decoder {
     protected final byte[] decodingTable = new byte[256];
 
     protected void initialiseDecodingTable() {
-        for (int i = 0; i < encodingTable.length; i++) {
-            decodingTable[encodingTable[i]] = (byte)i;
+        for (int i = 0; i < ENCODING_TABLE.length; i++) {
+            decodingTable[ENCODING_TABLE[i]] = (byte)i;
         }
     }
 



Mime
View raw message