Skip to content

Commit bf82e02

Browse files
committed
Made a bunch of constants final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@582446 13f79535-47bb-0310-9956-ffa450edef68
1 parent f064899 commit bf82e02

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/java/org/apache/commons/codec/net/QCodec.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public class QCodec extends RFC1522Codec implements StringEncoder, StringDecoder
9999
PRINTABLE_CHARS.set('~');
100100
}
101101

102-
private static byte BLANK = 32;
102+
private static final byte BLANK = 32;
103103

104-
private static byte UNDERSCORE = 95;
104+
private static final byte UNDERSCORE = 95;
105105

106106
private boolean encodeBlanks = false;
107107

@@ -308,4 +308,4 @@ public boolean isEncodeBlanks() {
308308
public void setEncodeBlanks(boolean b) {
309309
this.encodeBlanks = b;
310310
}
311-
}
311+
}

src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public class QuotedPrintableCodec implements BinaryEncoder, BinaryDecoder, Strin
6969
*/
7070
private static final BitSet PRINTABLE_CHARS = new BitSet(256);
7171

72-
private static byte ESCAPE_CHAR = '=';
72+
private static final byte ESCAPE_CHAR = '=';
7373

74-
private static byte TAB = 9;
74+
private static final byte TAB = 9;
7575

76-
private static byte SPACE = 32;
76+
private static final byte SPACE = 32;
7777
// Static initializer for printable chars collection
7878
static {
7979
// alpha characters
@@ -385,4 +385,4 @@ public String encode(String pString, String charset) throws UnsupportedEncodingE
385385
}
386386
return new String(encode(pString.getBytes(charset)), CharacterEncodingNames.US_ASCII);
387387
}
388-
}
388+
}

0 commit comments

Comments
 (0)