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 2023/06/09 12:02:59 UTC
[commons-io] branch master updated: [IO-801] Deprecation documentation gives incorrect alternative.
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 38cbc659 [IO-801] Deprecation documentation gives incorrect alternative.
38cbc659 is described below
commit 38cbc659a21038fc357f961639fc2b4875116eb3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 9 08:02:55 2023 -0400
[IO-801] Deprecation documentation gives incorrect alternative.
---
src/changes/changes.xml | 3 +++
.../apache/commons/io/input/ReversedLinesFileReader.java | 14 +++++++-------
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5aa8e59a..90ecd182 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -84,6 +84,9 @@ The <action> type attribute can be add,update,fix,remove.
<action dev="ggregory" type="fix" issue="IO-800" due-to="Jan Høydahl, Gary Gregory">
Fix back-incompatible change for PathUtils.deleteDirectory(): throw NoSuchFileException instead of IllegalArgumentException #459.
</action>
+ <action dev="ggregory" type="fix" issue="IO-801" due-to="James Howe, Gary Gregory">
+ Deprecation documentation gives incorrect alternative.
+ </action>
<!-- ADD -->
<action dev="ggregory" type="add" due-to="Gary Gregory">
Add CharSequenceInputStream.Builder.
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 ef5fdf13..457573af 100644
--- a/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
+++ b/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java
@@ -280,7 +280,7 @@ public class ReversedLinesFileReader implements Closeable {
*
* @param file the file to be read
* @throws IOException if an I/O error occurs.
- * @deprecated Use {@link ReaderInputStream#builder()} instead
+ * @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
*/
@Deprecated
public ReversedLinesFileReader(final File file) throws IOException {
@@ -295,7 +295,7 @@ public class ReversedLinesFileReader implements Closeable {
* @param charset the charset to use, null uses the default Charset.
* @throws IOException if an I/O error occurs.
* @since 2.5
- * @deprecated Use {@link ReaderInputStream#builder()} instead
+ * @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
*/
@Deprecated
public ReversedLinesFileReader(final File file, final Charset charset) throws IOException {
@@ -312,7 +312,7 @@ public class ReversedLinesFileReader implements Closeable {
* @param charset the encoding of the file, null uses the default Charset.
* @throws IOException if an I/O error occurs.
* @since 2.3
- * @deprecated Use {@link ReaderInputStream#builder()} instead
+ * @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
*/
@Deprecated
public ReversedLinesFileReader(final File file, final int blockSize, final Charset charset) throws IOException {
@@ -333,7 +333,7 @@ public class ReversedLinesFileReader implements Closeable {
* in version 2.2 if the
* encoding is not
* supported.
- * @deprecated Use {@link ReaderInputStream#builder()} instead
+ * @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
*/
@Deprecated
public ReversedLinesFileReader(final File file, final int blockSize, final String charsetName) throws IOException {
@@ -348,7 +348,7 @@ public class ReversedLinesFileReader implements Closeable {
* @param charset the charset to use, null uses the default Charset.
* @throws IOException if an I/O error occurs.
* @since 2.7
- * @deprecated Use {@link ReaderInputStream#builder()} instead
+ * @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
*/
@Deprecated
public ReversedLinesFileReader(final Path file, final Charset charset) throws IOException {
@@ -365,7 +365,7 @@ public class ReversedLinesFileReader implements Closeable {
* @param charset the encoding of the file, null uses the default Charset.
* @throws IOException if an I/O error occurs.
* @since 2.7
- * @deprecated Use {@link ReaderInputStream#builder()} instead
+ * @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
*/
@Deprecated
public ReversedLinesFileReader(final Path file, final int blockSize, final Charset charset) throws IOException {
@@ -439,7 +439,7 @@ public class ReversedLinesFileReader implements Closeable {
* encoding is not
* supported.
* @since 2.7
- * @deprecated Use {@link ReaderInputStream#builder()} instead
+ * @deprecated Use {@link #builder()}, {@link Builder}, and {@link Builder#get()}
*/
@Deprecated
public ReversedLinesFileReader(final Path file, final int blockSize, final String charsetName) throws IOException {