Skip to content

Commit 6f16107

Browse files
committed
Make the private variable final (thread safety)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@669668 13f79535-47bb-0310-9956-ffa450edef68
1 parent 16541c6 commit 6f16107

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class QuotedPrintableCodec implements BinaryEncoder, BinaryDecoder, Strin
6262
/**
6363
* The default charset used for string decoding and encoding.
6464
*/
65-
private String charset = CharacterEncodingNames.UTF8;
65+
private final String charset;
6666

6767
/**
6868
* BitSet of printable characters as defined in RFC 1521.
@@ -91,7 +91,7 @@ public class QuotedPrintableCodec implements BinaryEncoder, BinaryDecoder, Strin
9191
* Default constructor.
9292
*/
9393
public QuotedPrintableCodec() {
94-
super();
94+
this(CharacterEncodingNames.UTF8);
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)