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 3e12833  Add Javadoc see tags.
3e12833 is described below

commit 3e12833304902b64f753d8b08869edd0adec2c87
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Fri Jul 30 14:17:24 2021 -0400

    Add Javadoc see tags.
---
 src/main/java/org/apache/commons/io/FileUtils.java                     | 1 +
 src/main/java/org/apache/commons/io/file/PathUtils.java                | 1 +
 src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/FileUtils.java 
b/src/main/java/org/apache/commons/io/FileUtils.java
index 6038141..ea24741 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -2372,6 +2372,7 @@ public class FileUtils {
      * @param file the File.
      * @return a new OutputStream.
      * @throws IOException if an I/O error occurs.
+     * @see PathUtils#newOutputStream(Path, boolean)
      * @since 2.12.0
      */
     public static OutputStream newOutputStream(final File file, final boolean 
append) throws IOException {
diff --git a/src/main/java/org/apache/commons/io/file/PathUtils.java 
b/src/main/java/org/apache/commons/io/file/PathUtils.java
index ce14da9..fa16f1d 100644
--- a/src/main/java/org/apache/commons/io/file/PathUtils.java
+++ b/src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -843,6 +843,7 @@ public final class PathUtils {
      *
      * @return a new OutputStream.
      * @throws IOException if an I/O error occurs.
+     * @see Files#newOutputStream(Path, OpenOption...)
      * @since 2.12.0
      */
     public static OutputStream newOutputStream(final Path path, final boolean 
append) throws IOException {
diff --git 
a/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java 
b/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java
index 23b8996..5c040f3 100644
--- a/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java
+++ b/src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java
@@ -64,7 +64,7 @@ public class FileWriterWithEncoding extends Writer {
         OutputStream stream = null;
         final boolean fileExistedAlready = file.exists();
         try {
-            stream = FileUtils.newOutputStream(file, append);
+            stream = FileUtils.openOutputStream(file, append);
             if (encoding == null || encoding instanceof Charset) {
                 return new OutputStreamWriter(stream, 
Charsets.toCharset((Charset) encoding));
             }

Reply via email to