Skip to content

Commit 7a26933

Browse files
author
Gary Gregory
committed
Fix Javadoc comments WRT deprecation.
1 parent 14d6f4c commit 7a26933

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public static BufferedWriter buffer(final Writer writer, final int size) {
338338
* @param closeable the objects to close, may be null or already closed
339339
* @since 2.0
340340
*
341-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
341+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
342342
* suppressed exceptions manually.
343343
* @see Throwable#addSuppressed(java.lang.Throwable)
344344
*/
@@ -454,7 +454,7 @@ public static void close(final URLConnection conn) {
454454
* @see #closeQuietly(Closeable)
455455
* @since 2.5
456456
*
457-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
457+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
458458
* suppressed exceptions manually.
459459
* @see Throwable#addSuppressed(java.lang.Throwable)
460460
*/
@@ -491,7 +491,7 @@ public static void closeQuietly(final Closeable... closeables) {
491491
*
492492
* @param input the InputStream to close, may be null or already closed
493493
*
494-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
494+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
495495
* suppressed exceptions manually.
496496
* @see Throwable#addSuppressed(java.lang.Throwable)
497497
*/
@@ -524,7 +524,7 @@ public static void closeQuietly(final InputStream input) {
524524
*
525525
* @param output the OutputStream to close, may be null or already closed
526526
*
527-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
527+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
528528
* suppressed exceptions manually.
529529
* @see Throwable#addSuppressed(java.lang.Throwable)
530530
*/
@@ -556,7 +556,7 @@ public static void closeQuietly(final OutputStream output) {
556556
*
557557
* @param input the Reader to close, may be null or already closed
558558
*
559-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
559+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
560560
* suppressed exceptions manually.
561561
* @see Throwable#addSuppressed(java.lang.Throwable)
562562
*/
@@ -588,7 +588,7 @@ public static void closeQuietly(final Reader input) {
588588
* @param selector the Selector to close, may be null or already closed
589589
* @since 2.2
590590
*
591-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
591+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
592592
* suppressed exceptions manually.
593593
* @see Throwable#addSuppressed(java.lang.Throwable)
594594
*/
@@ -620,7 +620,7 @@ public static void closeQuietly(final Selector selector) {
620620
* @param serverSocket the ServerSocket to close, may be null or already closed
621621
* @since 2.2
622622
*
623-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
623+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
624624
* suppressed exceptions manually.
625625
* @see Throwable#addSuppressed(java.lang.Throwable)
626626
*/
@@ -652,7 +652,7 @@ public static void closeQuietly(final ServerSocket serverSocket) {
652652
* @param socket the Socket to close, may be null or already closed
653653
* @since 2.0
654654
*
655-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
655+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
656656
* suppressed exceptions manually.
657657
* @see Throwable#addSuppressed(java.lang.Throwable)
658658
*/
@@ -683,7 +683,7 @@ public static void closeQuietly(final Socket socket) {
683683
*
684684
* @param output the Writer to close, may be null or already closed
685685
*
686-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
686+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
687687
* suppressed exceptions manually.
688688
* @see Throwable#addSuppressed(java.lang.Throwable)
689689
*/

src/main/java/org/apache/commons/io/LineIterator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void remove() {
176176
* Closes a {@code LineIterator} quietly.
177177
*
178178
* @param iterator The iterator to close, or {@code null}.
179-
* @deprecated As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
179+
* @deprecated As of 2.6 deprecated without replacement. Please use the try-with-resources statement or handle
180180
* suppressed exceptions manually.
181181
* @see Throwable#addSuppressed(java.lang.Throwable)
182182
*/

0 commit comments

Comments
 (0)