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 0414381  Sort members.
0414381 is described below

commit 04143814ae84043c989b279ef2ca55cf65b758bd
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jul 10 11:01:51 2021 -0400

    Sort members.
---
 .../org/apache/commons/io/input/BrokenReader.java  | 38 +++++++++++-----------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/input/BrokenReader.java 
b/src/main/java/org/apache/commons/io/input/BrokenReader.java
index d13e401..6fcc9df 100644
--- a/src/main/java/org/apache/commons/io/input/BrokenReader.java
+++ b/src/main/java/org/apache/commons/io/input/BrokenReader.java
@@ -37,6 +37,13 @@ public class BrokenReader extends Reader {
     private final IOException exception;
 
     /**
+     * Creates a new reader that always throws an {@link IOException}
+     */
+    public BrokenReader() {
+        this(new IOException("Broken reader"));
+    }
+
+    /**
      * Creates a new reader that always throws the given exception.
      *
      * @param exception the exception to be thrown
@@ -46,57 +53,48 @@ public class BrokenReader extends Reader {
     }
 
     /**
-     * Creates a new reader that always throws an {@link IOException}
-     */
-    public BrokenReader() {
-        this(new IOException("Broken reader"));
-    }
-
-    /**
      * Throws the configured exception.
      *
-     * @param cbuf ignored
-     * @param off ignored
-     * @param len ignored
-     * @return nothing
      * @throws IOException always thrown
      */
     @Override
-    public int read(final char[] cbuf, final int off, final int len) throws 
IOException {
+    public void close() throws IOException {
         throw exception;
     }
 
     /**
      * Throws the configured exception.
      *
-     * @param n ignored
-     * @return nothing
+     * @param readAheadLimit ignored
      * @throws IOException always thrown
      */
     @Override
-    public long skip(final long n) throws IOException {
+    public void mark(final int readAheadLimit) throws IOException {
         throw exception;
     }
 
     /**
      * Throws the configured exception.
      *
+     * @param cbuf ignored
+     * @param off ignored
+     * @param len ignored
      * @return nothing
      * @throws IOException always thrown
      */
     @Override
-    public boolean ready() throws IOException {
+    public int read(final char[] cbuf, final int off, final int len) throws 
IOException {
         throw exception;
     }
 
     /**
      * Throws the configured exception.
      *
-     * @param readAheadLimit ignored
+     * @return nothing
      * @throws IOException always thrown
      */
     @Override
-    public void mark(final int readAheadLimit) throws IOException {
+    public boolean ready() throws IOException {
         throw exception;
     }
 
@@ -113,10 +111,12 @@ public class BrokenReader extends Reader {
     /**
      * Throws the configured exception.
      *
+     * @param n ignored
+     * @return nothing
      * @throws IOException always thrown
      */
     @Override
-    public void close() throws IOException {
+    public long skip(final long n) throws IOException {
         throw exception;
     }
 

Reply via email to