You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/04/12 16:02:59 UTC

[commons-io] branch master updated: Normalize ivar name.

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-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f37bc8  Normalize ivar name.
6f37bc8 is described below

commit 6f37bc86b41d79cea8f13de703049fab2e3669e9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 12 12:02:55 2020 -0400

    Normalize ivar name.
---
 .../java/org/apache/commons/io/input/DemuxInputStream.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/input/DemuxInputStream.java b/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
index 8207ec6..61457ba 100644
--- a/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
@@ -28,7 +28,7 @@ import org.apache.commons.io.IOUtils;
  *
  */
 public class DemuxInputStream extends InputStream {
-    private final InheritableThreadLocal<InputStream> m_streams = new InheritableThreadLocal<>();
+    private final InheritableThreadLocal<InputStream> inputStream = new InheritableThreadLocal<>();
 
     /**
      * Bind the specified stream to the current thread.
@@ -37,8 +37,8 @@ public class DemuxInputStream extends InputStream {
      * @return the InputStream that was previously active
      */
     public InputStream bindStream(final InputStream input) {
-        final InputStream oldValue = m_streams.get();
-        m_streams.set(input);
+        final InputStream oldValue = inputStream.get();
+        inputStream.set(input);
         return oldValue;
     }
 
@@ -49,7 +49,7 @@ public class DemuxInputStream extends InputStream {
      */
     @Override
     public void close() throws IOException {
-        IOUtils.close(m_streams.get());
+        IOUtils.close(inputStream.get());
     }
 
     /**
@@ -60,7 +60,7 @@ public class DemuxInputStream extends InputStream {
      */
     @Override
     public int read() throws IOException {
-        final InputStream input = m_streams.get();
+        final InputStream input = inputStream.get();
         if (null != input) {
             return input.read();
         }