Skip to content

Commit f064899

Browse files
committed
Privatised a bunch of static variables that are not used anywhere else in the package
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@582445 13f79535-47bb-0310-9956-ffa450edef68
1 parent 71e7260 commit f064899

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/java/org/apache/commons/codec/binary/Base64.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,42 +56,42 @@ public class Base64 implements BinaryEncoder, BinaryDecoder {
5656
/**
5757
* The base length.
5858
*/
59-
static final int BASELENGTH = 255;
59+
private static final int BASELENGTH = 255;
6060

6161
/**
6262
* Lookup length.
6363
*/
64-
static final int LOOKUPLENGTH = 64;
64+
private static final int LOOKUPLENGTH = 64;
6565

6666
/**
6767
* Used to calculate the number of bits in a byte.
6868
*/
69-
static final int EIGHTBIT = 8;
69+
private static final int EIGHTBIT = 8;
7070

7171
/**
7272
* Used when encoding something which has fewer than 24 bits.
7373
*/
74-
static final int SIXTEENBIT = 16;
74+
private static final int SIXTEENBIT = 16;
7575

7676
/**
7777
* Used to determine how many bits data contains.
7878
*/
79-
static final int TWENTYFOURBITGROUP = 24;
79+
private static final int TWENTYFOURBITGROUP = 24;
8080

8181
/**
8282
* Used to get the number of Quadruples.
8383
*/
84-
static final int FOURBYTE = 4;
84+
private static final int FOURBYTE = 4;
8585

8686
/**
8787
* Used to test the sign of a byte.
8888
*/
89-
static final int SIGN = -128;
89+
private static final int SIGN = -128;
9090

9191
/**
9292
* Byte used to pad output.
9393
*/
94-
static final byte PAD = (byte) '=';
94+
private static final byte PAD = (byte) '=';
9595

9696
/**
9797
* Contains the Base64 values <code>0</code> through <code>63</code> accessed by using character encodings as
@@ -103,7 +103,7 @@ public class Base64 implements BinaryEncoder, BinaryDecoder {
103103
* The value of undefined encodings is <code>-1</code>.
104104
* </p>
105105
*/
106-
private static byte[] base64Alphabet = new byte[BASELENGTH];
106+
private static final byte[] base64Alphabet = new byte[BASELENGTH];
107107

108108
/**
109109
* <p>
@@ -118,7 +118,7 @@ public class Base64 implements BinaryEncoder, BinaryDecoder {
118118
* For example, <code>lookUpBase64Alphabet[62] </code> returns <code>'+'</code>.
119119
* </p>
120120
*/
121-
private static byte[] lookUpBase64Alphabet = new byte[LOOKUPLENGTH];
121+
private static final byte[] lookUpBase64Alphabet = new byte[LOOKUPLENGTH];
122122

123123
// Populating the lookup and character arrays
124124
static {

0 commit comments

Comments
 (0)