Skip to content

Commit 91cb797

Browse files
committed
Internal refactoring
1 parent 7e58c97 commit 91cb797

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public Builder() {
120120
*/
121121
@Override
122122
public ReversedLinesFileReader get() throws IOException {
123-
return new ReversedLinesFileReader(getPath(), getBufferSize(), getCharset());
123+
return new ReversedLinesFileReader(this);
124124
}
125125

126126
}
@@ -329,9 +329,9 @@ private ReversedLinesFileReader(final Builder builder) throws IOException {
329329
// however byte order has to be specified
330330
byteDecrement = 2;
331331
} else if (this.charset == StandardCharsets.UTF_16) {
332-
throw new UnsupportedEncodingException("For UTF-16, you need to specify the byte order (use UTF-16BE or " + "UTF-16LE)");
332+
throw new UnsupportedEncodingException("For UTF-16, you need to specify the byte order (use UTF-16BE or UTF-16LE)");
333333
} else {
334-
throw new UnsupportedEncodingException("Encoding " + charset + " is not supported yet (feel free to " + "submit a patch)");
334+
throw new UnsupportedEncodingException("Encoding " + charset + " is not supported yet (feel free to submit a patch)");
335335
}
336336
// NOTE: The new line sequences are matched in the order given, so it is
337337
// important that \r\n is BEFORE \n

0 commit comments

Comments
 (0)