commons-commits mailing list archives

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

URL: http://svn.apache.org/r1456651
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=1456651&r1=1456650&r2=1456651&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:20:17 2013
@@ -24,7 +24,7 @@ import java.io.OutputStream;
  */
 final class Base64Decoder {
 
-    protected final byte[] ENCODING_TABLE = {
+    private final byte[] encodingTable = {
         (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 < ENCODING_TABLE.length; i++) {
-            decodingTable[ENCODING_TABLE[i]] = (byte) i;
+        for (int i = 0; i < encodingTable.length; i++) {
+            decodingTable[encodingTable[i]] = (byte) i;
         }
     }
 



Mime
View raw message