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


The following commit(s) were added to refs/heads/master by this push:
     new ec6e6c75 Don't initialize an instance variable to its default value
ec6e6c75 is described below

commit ec6e6c75e972f4f13b93fed84323272a5d5f40af
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 27 09:31:30 2023 -0400

    Don't initialize an instance variable to its default value
---
 src/conf/checkstyle.xml                                            | 1 +
 src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle.xml
index 0245a7e1..79ac8b94 100644
--- a/src/conf/checkstyle.xml
+++ b/src/conf/checkstyle.xml
@@ -60,6 +60,7 @@ limitations under the License.
   </module>
 
   <module name="TreeWalker">
+    <module name="ExplicitInitializationCheck" />
     <module name="OperatorWrap">
       <property name="option" value="eol" />
     </module>
diff --git a/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java 
b/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java
index 1129cdc8..d0187cf1 100644
--- a/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java
+++ b/src/test/java/org/apache/commons/codec/binary/BinaryCodecTest.java
@@ -61,7 +61,7 @@ public class BinaryCodecTest {
     private static final int BIT_7 = 0x80;
 
     /** An instance of the binary codec. */
-    BinaryCodec instance = null;
+    BinaryCodec instance;
 
     // ------------------------------------------------------------------------
     //

Reply via email to