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 a14aa92  Comment empty block. Formatting.
a14aa92 is described below

commit a14aa925ecba88855c66b7e38b6dcf30c5b99ffe
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Tue Apr 9 10:32:14 2019 -0400

    Comment empty block. Formatting.
---
 .../apache/commons/io/input/DemuxInputStream.java  | 26 +++++++---------------
 .../commons/io/input/ObservableInputStream.java    | 16 +++++++++----
 .../org/apache/commons/io/input/ProxyReader.java   |  2 ++
 .../commons/io/input/TailerListenerAdapter.java    |  6 +++++
 .../io/monitor/FileAlterationListenerAdaptor.java  |  8 +++++++
 .../commons/io/monitor/FileAlterationMonitor.java  |  1 +
 .../commons/io/monitor/FileAlterationObserver.java |  1 +
 .../commons/io/output/ProxyOutputStream.java       |  2 ++
 8 files changed, 40 insertions(+), 22 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 c65f065..dbdcc4c 100644
--- a/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
@@ -22,13 +22,10 @@ import java.io.IOException;
 import java.io.InputStream;
 
 /**
- * Data written to this stream is forwarded to a stream that has been 
associated
- * with this thread.
+ * Data written to this stream is forwarded to a stream that has been 
associated with this thread.
  *
  */
-public class DemuxInputStream
-    extends InputStream
-{
+public class DemuxInputStream extends InputStream {
     private final InheritableThreadLocal<InputStream> m_streams = new 
InheritableThreadLocal<>();
 
     /**
@@ -37,10 +34,9 @@ public class DemuxInputStream
      * @param input the stream to bind
      * @return the InputStream that was previously active
      */
-    public InputStream bindStream( final InputStream input )
-    {
+    public InputStream bindStream(final InputStream input) {
         final InputStream oldValue = m_streams.get();
-        m_streams.set( input );
+        m_streams.set(input);
         return oldValue;
     }
 
@@ -50,12 +46,9 @@ public class DemuxInputStream
      * @throws IOException if an error occurs
      */
     @Override
-    public void close()
-        throws IOException
-    {
+    public void close() throws IOException {
         final InputStream input = m_streams.get();
-        if( null != input )
-        {
+        if (null != input) {
             input.close();
         }
     }
@@ -67,12 +60,9 @@ public class DemuxInputStream
      * @throws IOException if an error occurs
      */
     @Override
-    public int read()
-        throws IOException
-    {
+    public int read() throws IOException {
         final InputStream input = m_streams.get();
-        if( null != input )
-        {
+        if (null != input) {
             return input.read();
         }
         return EOF;
diff --git 
a/src/main/java/org/apache/commons/io/input/ObservableInputStream.java 
b/src/main/java/org/apache/commons/io/input/ObservableInputStream.java
index a53e90d..7aa29da 100644
--- a/src/main/java/org/apache/commons/io/input/ObservableInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/ObservableInputStream.java
@@ -44,7 +44,9 @@ public class ObservableInputStream extends ProxyInputStream {
          *    because, in that case, {@link #finished()} will be invoked 
instead.
          * @throws IOException if an i/o-error occurs
          */
-        public void data(final int pByte) throws IOException {}
+        public void data(final int pByte) throws IOException {
+            // noop
+        }
 
         /** Called to indicate, that {@link InputStream#read(byte[])}, or
          * {@link InputStream#read(byte[], int, int)} have been called, and 
are about to
@@ -55,7 +57,9 @@ public class ObservableInputStream extends ProxyInputStream {
          * @param pLength The number of bytes, which have been stored in the 
byte array.
          * @throws IOException if an i/o-error occurs
          */
-        public void data(final byte[] pBuffer, final int pOffset, final int 
pLength) throws IOException {}
+        public void data(final byte[] pBuffer, final int pOffset, final int 
pLength) throws IOException {
+            // noop
+        }
 
         /** Called to indicate, that EOF has been seen on the underlying 
stream.
          * This method may be called multiple times, if the reader keeps 
invoking
@@ -63,12 +67,16 @@ public class ObservableInputStream extends ProxyInputStream 
{
          * EOF.
          * @throws IOException if an i/o-error occurs
          */
-        public void finished() throws IOException {}
+        public void finished() throws IOException {
+            // noop            
+        }
 
         /** Called to indicate, that the {@link ObservableInputStream} has 
been closed.
          * @throws IOException if an i/o-error occurs
          */
-        public void closed() throws IOException {}
+        public void closed() throws IOException {
+            // noop
+        }
 
         /**
          * Called to indicate, that an error occurred on the underlying stream.
diff --git a/src/main/java/org/apache/commons/io/input/ProxyReader.java 
b/src/main/java/org/apache/commons/io/input/ProxyReader.java
index 15a5717..75fadee 100644
--- a/src/main/java/org/apache/commons/io/input/ProxyReader.java
+++ b/src/main/java/org/apache/commons/io/input/ProxyReader.java
@@ -222,6 +222,7 @@ public abstract class ProxyReader extends FilterReader {
      * @throws IOException if the pre-processing fails
      */
     protected void beforeRead(final int n) throws IOException {
+        // noop
     }
 
     /**
@@ -242,6 +243,7 @@ public abstract class ProxyReader extends FilterReader {
      * @throws IOException if the post-processing fails
      */
     protected void afterRead(final int n) throws IOException {
+        // noop
     }
 
     /**
diff --git 
a/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java 
b/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java
index 29a05db..fbf0b44 100644
--- a/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java
+++ b/src/main/java/org/apache/commons/io/input/TailerListenerAdapter.java
@@ -30,6 +30,7 @@ public class TailerListenerAdapter implements TailerListener {
      */
     @Override
     public void init(final Tailer tailer) {
+        // noop
     }
 
     /**
@@ -37,6 +38,7 @@ public class TailerListenerAdapter implements TailerListener {
      */
     @Override
     public void fileNotFound() {
+        // noop
     }
 
     /**
@@ -47,6 +49,7 @@ public class TailerListenerAdapter implements TailerListener {
      */
     @Override
     public void fileRotated() {
+        // noop
     }
 
     /**
@@ -55,6 +58,7 @@ public class TailerListenerAdapter implements TailerListener {
      */
     @Override
     public void handle(final String line) {
+        // noop
     }
 
     /**
@@ -63,6 +67,7 @@ public class TailerListenerAdapter implements TailerListener {
      */
     @Override
     public void handle(final Exception ex) {
+        // noop
     }
 
     /**
@@ -76,5 +81,6 @@ public class TailerListenerAdapter implements TailerListener {
      * @since 2.5
      */
     public void endOfFileReached() {
+        // noop
     }
 }
diff --git 
a/src/main/java/org/apache/commons/io/monitor/FileAlterationListenerAdaptor.java
 
b/src/main/java/org/apache/commons/io/monitor/FileAlterationListenerAdaptor.java
index bfdbf79..e92f479 100644
--- 
a/src/main/java/org/apache/commons/io/monitor/FileAlterationListenerAdaptor.java
+++ 
b/src/main/java/org/apache/commons/io/monitor/FileAlterationListenerAdaptor.java
@@ -34,6 +34,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onStart(final FileAlterationObserver observer) {
+        // noop
     }
 
     /**
@@ -43,6 +44,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onDirectoryCreate(final File directory) {
+        // noop
     }
 
     /**
@@ -52,6 +54,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onDirectoryChange(final File directory) {
+        // noop
     }
 
     /**
@@ -61,6 +64,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onDirectoryDelete(final File directory) {
+        // noop
     }
 
     /**
@@ -70,6 +74,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onFileCreate(final File file) {
+        // noop
     }
 
     /**
@@ -79,6 +84,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onFileChange(final File file) {
+        // noop
     }
 
     /**
@@ -88,6 +94,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onFileDelete(final File file) {
+        // noop
     }
 
     /**
@@ -97,6 +104,7 @@ public class FileAlterationListenerAdaptor implements 
FileAlterationListener {
      */
     @Override
     public void onStop(final FileAlterationObserver observer) {
+        // noop
     }
 
 }
diff --git 
a/src/main/java/org/apache/commons/io/monitor/FileAlterationMonitor.java 
b/src/main/java/org/apache/commons/io/monitor/FileAlterationMonitor.java
index 5f4ac6b..17b8cb1 100644
--- a/src/main/java/org/apache/commons/io/monitor/FileAlterationMonitor.java
+++ b/src/main/java/org/apache/commons/io/monitor/FileAlterationMonitor.java
@@ -188,6 +188,7 @@ public final class FileAlterationMonitor implements 
Runnable {
             try {
                 Thread.sleep(interval);
             } catch (final InterruptedException ignored) {
+                // ignore
             }
         }
     }
diff --git 
a/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java 
b/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java
index 2f89010..7bcd07a 100644
--- a/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java
+++ b/src/main/java/org/apache/commons/io/monitor/FileAlterationObserver.java
@@ -285,6 +285,7 @@ public class FileAlterationObserver implements Serializable 
{
      * @throws Exception if an error occurs
      */
     public void destroy() throws Exception {
+        // noop
     }
 
     /**
diff --git a/src/main/java/org/apache/commons/io/output/ProxyOutputStream.java 
b/src/main/java/org/apache/commons/io/output/ProxyOutputStream.java
index 145252e..4f8f73f 100644
--- a/src/main/java/org/apache/commons/io/output/ProxyOutputStream.java
+++ b/src/main/java/org/apache/commons/io/output/ProxyOutputStream.java
@@ -133,6 +133,7 @@ public class ProxyOutputStream extends FilterOutputStream {
      * @throws IOException if the pre-processing fails
      */
     protected void beforeWrite(final int n) throws IOException {
+        // noop
     }
 
     /**
@@ -150,6 +151,7 @@ public class ProxyOutputStream extends FilterOutputStream {
      * @throws IOException if the post-processing fails
      */
     protected void afterWrite(final int n) throws IOException {
+        // noop
     }
 
     /**

Reply via email to