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-vfs.git
The following commit(s) were added to refs/heads/master by this push: new e3ac444 No need to init to default value. e3ac444 is described below commit e3ac44455d13f450bc00d73f626f3a661108f7e4 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jun 26 17:06:02 2021 -0400 No need to init to default value. --- .../main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java | 2 +- .../src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java | 2 +- .../main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java index 2bea1dc..d69fbe6 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileSystem.java @@ -92,7 +92,7 @@ public abstract class AbstractFileSystem extends AbstractVfsComponent implements /** * How many fileObjects are handed out */ - private final AtomicLong useCount = new AtomicLong(0); + private final AtomicLong useCount = new AtomicLong(); private FileSystemKey cacheKey; diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java index 98dd772..ec79ae5 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java @@ -28,7 +28,7 @@ import java.util.concurrent.atomic.AtomicLong; public class MonitorInputStream extends BufferedInputStream { private static final int EOF_CHAR = -1; - private final AtomicLong atomicCount = new AtomicLong(0); + private final AtomicLong atomicCount = new AtomicLong(); private final AtomicBoolean finished = new AtomicBoolean(false); /** diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java index 1195c04..0d723e8 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java @@ -34,7 +34,7 @@ public class RawMonitorInputStream extends FilterInputStream { private static final int EOF_CHAR = -1; private final AtomicBoolean finished = new AtomicBoolean(false); - private final AtomicLong atomicCount = new AtomicLong(0); + private final AtomicLong atomicCount = new AtomicLong(); // @Override // public synchronized void reset() throws IOException {