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 2025/07/05 14:40:12 UTC

(commons-io) 09/20: Internal refactoring

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

commit 91cb797f117d7f0d5cfeb8f8c11c1aab4a2a9d0a
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Jul 5 10:22:10 2025 -0400

    Internal refactoring
---
 .../java/org/apache/commons/io/input/ReversedLinesFileReader.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java b/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
index 132e9c984..949ff8cbd 100644
--- a/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
+++ b/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
@@ -120,7 +120,7 @@ public Builder() {
          */
         @Override
         public ReversedLinesFileReader get() throws IOException {
-            return new ReversedLinesFileReader(getPath(), getBufferSize(), getCharset());
+            return new ReversedLinesFileReader(this);
         }
 
     }
@@ -329,9 +329,9 @@ private ReversedLinesFileReader(final Builder builder) throws IOException {
             // however byte order has to be specified
             byteDecrement = 2;
         } else if (this.charset == StandardCharsets.UTF_16) {
-            throw new UnsupportedEncodingException("For UTF-16, you need to specify the byte order (use UTF-16BE or " + "UTF-16LE)");
+            throw new UnsupportedEncodingException("For UTF-16, you need to specify the byte order (use UTF-16BE or UTF-16LE)");
         } else {
-            throw new UnsupportedEncodingException("Encoding " + charset + " is not supported yet (feel free to " + "submit a patch)");
+            throw new UnsupportedEncodingException("Encoding " + charset + " is not supported yet (feel free to submit a patch)");
         }
         // NOTE: The new line sequences are matched in the order given, so it is
         // important that \r\n is BEFORE \n