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-crypto.git
The following commit(s) were added to refs/heads/master by this push:
new 624246a Don't initialize an instance or static variable to its
default value
624246a is described below
commit 624246a3b0ab0a31f5448bf2bf672c0ab3feb3e7
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 27 09:42:35 2023 -0400
Don't initialize an instance or static variable to its default value
---
src/conf/checkstyle/checkstyle.xml | 1 +
src/main/java/org/apache/commons/crypto/Crypto.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/conf/checkstyle/checkstyle.xml
b/src/conf/checkstyle/checkstyle.xml
index 9dca2ef..992bdd4 100644
--- a/src/conf/checkstyle/checkstyle.xml
+++ b/src/conf/checkstyle/checkstyle.xml
@@ -31,6 +31,7 @@ limitations under the License.
<property name="fileExtensions" value="java,xml"/>
</module>
<module name="TreeWalker">
+ <module name="ExplicitInitializationCheck" />
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
diff --git a/src/main/java/org/apache/commons/crypto/Crypto.java
b/src/main/java/org/apache/commons/crypto/Crypto.java
index a7f06e1..549da0c 100644
--- a/src/main/java/org/apache/commons/crypto/Crypto.java
+++ b/src/main/java/org/apache/commons/crypto/Crypto.java
@@ -79,7 +79,7 @@ public final class Crypto {
*/
public static final String LIB_TEMPDIR_KEY = Crypto.CONF_PREFIX +
"lib.tempdir";
- private static boolean quiet = false;
+ private static boolean quiet;
/**
* Gets the component version of Apache Commons Crypto.