Skip to content

Commit 38cbc65

Browse files
committed
[IO-801] Deprecation documentation gives incorrect alternative.
1 parent eb3ab12 commit 38cbc65

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ The <action> type attribute can be add,update,fix,remove.
8484
<action dev="ggregory" type="fix" issue="IO-800" due-to="Jan Høydahl, Gary Gregory">
8585
Fix back-incompatible change for PathUtils.deleteDirectory(): throw NoSuchFileException instead of IllegalArgumentException #459.
8686
</action>
87+
<action dev="ggregory" type="fix" issue="IO-801" due-to="James Howe, Gary Gregory">
88+
Deprecation documentation gives incorrect alternative.
89+
</action>
8790
<!-- ADD -->
8891
<action dev="ggregory" type="add" due-to="Gary Gregory">
8992
Add CharSequenceInputStream.Builder.

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public static Builder builder() {
280280
*
281281
* @param file the file to be read
282282
* @throws IOException if an I/O error occurs.
283-
* @deprecated Use {@link ReaderInputStream#builder()} instead
283+
* @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
284284
*/
285285
@Deprecated
286286
public ReversedLinesFileReader(final File file) throws IOException {
@@ -295,7 +295,7 @@ public ReversedLinesFileReader(final File file) throws IOException {
295295
* @param charset the charset to use, null uses the default Charset.
296296
* @throws IOException if an I/O error occurs.
297297
* @since 2.5
298-
* @deprecated Use {@link ReaderInputStream#builder()} instead
298+
* @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
299299
*/
300300
@Deprecated
301301
public ReversedLinesFileReader(final File file, final Charset charset) throws IOException {
@@ -312,7 +312,7 @@ public ReversedLinesFileReader(final File file, final Charset charset) throws IO
312312
* @param charset the encoding of the file, null uses the default Charset.
313313
* @throws IOException if an I/O error occurs.
314314
* @since 2.3
315-
* @deprecated Use {@link ReaderInputStream#builder()} instead
315+
* @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
316316
*/
317317
@Deprecated
318318
public ReversedLinesFileReader(final File file, final int blockSize, final Charset charset) throws IOException {
@@ -333,7 +333,7 @@ public ReversedLinesFileReader(final File file, final int blockSize, final Chars
333333
* in version 2.2 if the
334334
* encoding is not
335335
* supported.
336-
* @deprecated Use {@link ReaderInputStream#builder()} instead
336+
* @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
337337
*/
338338
@Deprecated
339339
public ReversedLinesFileReader(final File file, final int blockSize, final String charsetName) throws IOException {
@@ -348,7 +348,7 @@ public ReversedLinesFileReader(final File file, final int blockSize, final Strin
348348
* @param charset the charset to use, null uses the default Charset.
349349
* @throws IOException if an I/O error occurs.
350350
* @since 2.7
351-
* @deprecated Use {@link ReaderInputStream#builder()} instead
351+
* @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
352352
*/
353353
@Deprecated
354354
public ReversedLinesFileReader(final Path file, final Charset charset) throws IOException {
@@ -365,7 +365,7 @@ public ReversedLinesFileReader(final Path file, final Charset charset) throws IO
365365
* @param charset the encoding of the file, null uses the default Charset.
366366
* @throws IOException if an I/O error occurs.
367367
* @since 2.7
368-
* @deprecated Use {@link ReaderInputStream#builder()} instead
368+
* @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
369369
*/
370370
@Deprecated
371371
public ReversedLinesFileReader(final Path file, final int blockSize, final Charset charset) throws IOException {
@@ -439,7 +439,7 @@ public ReversedLinesFileReader(final Path file, final int blockSize, final Chars
439439
* encoding is not
440440
* supported.
441441
* @since 2.7
442-
* @deprecated Use {@link ReaderInputStream#builder()} instead
442+
* @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
443443
*/
444444
@Deprecated
445445
public ReversedLinesFileReader(final Path file, final int blockSize, final String charsetName) throws IOException {

0 commit comments

Comments
 (0)