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-jci.git
The following commit(s) were added to refs/heads/master by this push:
new 84ab809 Don't initialize an instance or static variable to its
default value
84ab809 is described below
commit 84ab80945e8949b78b6455814cf25c11b37e24e1
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 27 10:00:07 2023 -0400
Don't initialize an instance or static variable to its default value
---
.../apache/commons/jci2/core/compiler/JavaCompilerSettings.java | 8 ++++----
.../apache/commons/jci2/core/readers/MemoryResourceReader.java | 2 +-
.../commons/jci2/fam/monitor/FilesystemAlterationMonitor.java | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git
a/core/src/main/java/org/apache/commons/jci2/core/compiler/JavaCompilerSettings.java
b/core/src/main/java/org/apache/commons/jci2/core/compiler/JavaCompilerSettings.java
index a3987ed..fa69462 100644
---
a/core/src/main/java/org/apache/commons/jci2/core/compiler/JavaCompilerSettings.java
+++
b/core/src/main/java/org/apache/commons/jci2/core/compiler/JavaCompilerSettings.java
@@ -33,13 +33,13 @@ public class JavaCompilerSettings {
private String targetVersion = "1.4";
private String sourceVersion = "1.4";
private String sourceEncoding = "UTF-8";
- private boolean warnings = false;
- private boolean deprecations = false;
- private boolean debug = false;
+ private boolean warnings;
+ private boolean deprecations;
+ private boolean debug;
/** @deprecated */
@Deprecated
- private boolean verbose = false;
+ private boolean verbose;
public JavaCompilerSettings() {
}
diff --git
a/core/src/main/java/org/apache/commons/jci2/core/readers/MemoryResourceReader.java
b/core/src/main/java/org/apache/commons/jci2/core/readers/MemoryResourceReader.java
index 7b24738..3ac74a5 100644
---
a/core/src/main/java/org/apache/commons/jci2/core/readers/MemoryResourceReader.java
+++
b/core/src/main/java/org/apache/commons/jci2/core/readers/MemoryResourceReader.java
@@ -27,7 +27,7 @@ import java.util.Map;
*/
public class MemoryResourceReader implements ResourceReader {
- private Map<String, byte[]> resources = null;
+ private Map<String, byte[]> resources;
public boolean isAvailable( final String pResourceName ) {
if (resources == null) {
diff --git
a/fam/src/main/java/org/apache/commons/jci2/fam/monitor/FilesystemAlterationMonitor.java
b/fam/src/main/java/org/apache/commons/jci2/fam/monitor/FilesystemAlterationMonitor.java
index 8d62e7f..65c38b6 100644
---
a/fam/src/main/java/org/apache/commons/jci2/fam/monitor/FilesystemAlterationMonitor.java
+++
b/fam/src/main/java/org/apache/commons/jci2/fam/monitor/FilesystemAlterationMonitor.java
@@ -40,7 +40,7 @@ public final class FilesystemAlterationMonitor implements
Runnable {
/** delay between calls to {@link
FilesystemAlterationObserver#checkAndNotify()}, default 3000 ms */
private volatile long delay = 3000; // volatile because shared with daemon
thread
- private Thread thread = null;
+ private Thread thread;
private volatile boolean running = true;