Skip to content

Commit 4f7912d

Browse files
committed
[CODEC-136] Use Charset objects when possible, create Charsets for required character encodings.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1306431 13f79535-47bb-0310-9956-ffa450edef68
1 parent b0083b6 commit 4f7912d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.BitSet;
2424

2525
import org.apache.commons.codec.CharEncoding;
26+
import org.apache.commons.codec.Charsets;
2627
import org.apache.commons.codec.DecoderException;
2728
import org.apache.commons.codec.EncoderException;
2829
import org.apache.commons.codec.StringDecoder;
@@ -112,7 +113,7 @@ public class QCodec extends RFC1522Codec implements StringEncoder, StringDecoder
112113
* Default constructor.
113114
*/
114115
public QCodec() {
115-
this(CharEncoding.UTF_8);
116+
this(Charsets.UTF_8);
116117
}
117118

118119
/**

0 commit comments

Comments
 (0)