You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/05/18 13:26:45 UTC

[commons-codec] 04/06: Reuse constructor.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git

commit 38f7f12d20a32279823c0870be6238932e06fdcb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 18 09:24:00 2020 -0400

    Reuse constructor.
---
 src/main/java/org/apache/commons/codec/net/BCodec.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/codec/net/BCodec.java b/src/main/java/org/apache/commons/codec/net/BCodec.java
index 06eda58..46263c2 100644
--- a/src/main/java/org/apache/commons/codec/net/BCodec.java
+++ b/src/main/java/org/apache/commons/codec/net/BCodec.java
@@ -81,8 +81,7 @@ public class BCodec extends RFC1522Codec implements StringEncoder, StringDecoder
      * @since 1.7
      */
     public BCodec(final Charset charset) {
-        this.charset = charset;
-        this.decodingPolicy = DECODING_POLICY_DEFAULT;
+        this(charset, DECODING_POLICY_DEFAULT);
     }
 
     /**