commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1737900 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java
Date Wed, 06 Apr 2016 00:23:05 GMT
Author: ggregory
Date: Wed Apr  6 00:23:05 2016
New Revision: 1737900

URL: http://svn.apache.org/viewvc?rev=1737900&view=rev
Log:
Don't use a "m_" prefix for ivars.

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java?rev=1737900&r1=1737899&r2=1737900&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/output/DemuxOutputStream.java
Wed Apr  6 00:23:05 2016
@@ -25,7 +25,7 @@ import java.io.OutputStream;
  * @version $Id$
  */
 public class DemuxOutputStream extends OutputStream {
-    private final InheritableThreadLocal<OutputStream> m_streams = new InheritableThreadLocal<OutputStream>();
+    private final InheritableThreadLocal<OutputStream> outputStreamThreadLocal = new
InheritableThreadLocal<OutputStream>();
 
     /**
      * Binds the specified stream to the current thread.
@@ -35,8 +35,8 @@ public class DemuxOutputStream extends O
      * @return the OutputStream that was previously active
      */
     public OutputStream bindStream(final OutputStream output) {
-        final OutputStream stream = m_streams.get();
-        m_streams.set(output);
+        final OutputStream stream = outputStreamThreadLocal.get();
+        outputStreamThreadLocal.set(output);
         return stream;
     }
 
@@ -48,7 +48,7 @@ public class DemuxOutputStream extends O
      */
     @Override
     public void close() throws IOException {
-        final OutputStream output = m_streams.get();
+        final OutputStream output = outputStreamThreadLocal.get();
         if (null != output) {
             output.close();
         }
@@ -62,7 +62,7 @@ public class DemuxOutputStream extends O
      */
     @Override
     public void flush() throws IOException {
-        final OutputStream output = m_streams.get();
+        final OutputStream output = outputStreamThreadLocal.get();
         if (null != output) {
             output.flush();
         }
@@ -78,7 +78,7 @@ public class DemuxOutputStream extends O
      */
     @Override
     public void write(final int ch) throws IOException {
-        final OutputStream output = m_streams.get();
+        final OutputStream output = outputStreamThreadLocal.get();
         if (null != output) {
             output.write(ch);
         }



Mime
View raw message