From f366c00f4bb138bf260ab6f328d9ce58a017827f Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 27 Oct 2023 09:13:00 -0400 Subject: [PATCH] Don't initialize an instance variable to its default value --- .../java/org/apache/commons/codec/language/ColognePhonetic.java | 2 +- src/main/java/org/apache/commons/codec/net/QCodec.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/codec/language/ColognePhonetic.java b/src/main/java/org/apache/commons/codec/language/ColognePhonetic.java index 0a7b62711b..8a1c1902ec 100644 --- a/src/main/java/org/apache/commons/codec/language/ColognePhonetic.java +++ b/src/main/java/org/apache/commons/codec/language/ColognePhonetic.java @@ -191,7 +191,7 @@ abstract static class CologneBuffer { protected final char[] data; - protected int length = 0; + protected int length; public CologneBuffer(final char[] data) { this.data = data; diff --git a/src/main/java/org/apache/commons/codec/net/QCodec.java b/src/main/java/org/apache/commons/codec/net/QCodec.java index e5b4c215ba..dcc39ad323 100644 --- a/src/main/java/org/apache/commons/codec/net/QCodec.java +++ b/src/main/java/org/apache/commons/codec/net/QCodec.java @@ -108,7 +108,7 @@ public class QCodec extends RFC1522Codec implements StringEncoder, StringDecoder */ private final Charset charset; - private boolean encodeBlanks = false; + private boolean encodeBlanks; /** * Default constructor.