From 9d9145a699e2fff02b7a375d0d1fe5932aa6b23b Mon Sep 17 00:00:00 2001 From: Brian Burkhalter Date: Fri, 15 Jul 2016 13:23:02 -0700 Subject: [PATCH] 8161455: Missing word in API documentation Change "file has created" to "file has been created" in two places. Reviewed-by: rriggs, alanb --- jdk/src/java.base/share/classes/java/nio/file/Files.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/nio/file/Files.java b/jdk/src/java.base/share/classes/java/nio/file/Files.java index e1ab41b7759..3a6491440a7 100644 --- a/jdk/src/java.base/share/classes/java/nio/file/Files.java +++ b/jdk/src/java.base/share/classes/java/nio/file/Files.java @@ -3290,8 +3290,8 @@ public final class Files { * a size of {@code 0}. All bytes in the byte array are written to the file. * The method ensures that the file is closed when all bytes have been * written (or an I/O error or other runtime exception is thrown). If an I/O - * error occurs then it may do so after the file has created or truncated, - * or after some bytes have been written to the file. + * error occurs then it may do so after the file has been created or + * truncated, or after some bytes have been written to the file. * *

Usage example: By default the method creates a new file or * overwrites an existing file. Suppose you instead want to append bytes @@ -3360,7 +3360,8 @@ public final class Files { * a size of {@code 0}. The method ensures that the file is closed when all * lines have been written (or an I/O error or other runtime exception is * thrown). If an I/O error occurs then it may do so after the file has - * created or truncated, or after some bytes have been written to the file. + * been created or truncated, or after some bytes have been written to the + * file. * * @param path * the path to the file