Mercurial > hg > openjdk > jdk9 > jdk
changeset 15083:9446c534f022 jdk-9+128
8161455: Missing word in API documentation
Summary: Change "file has created" to "file has been created" in two places.
Reviewed-by: rriggs, alanb
author | bpb |
---|---|
date | Fri, 15 Jul 2016 13:23:02 -0700 |
parents | 65b3167a9849 |
children | 85c0ee43eff9 d04ea07c1629 |
files | src/java.base/share/classes/java/nio/file/Files.java |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.base/share/classes/java/nio/file/Files.java Fri Jul 15 12:30:10 2016 -0700 +++ b/src/java.base/share/classes/java/nio/file/Files.java Fri Jul 15 13:23:02 2016 -0700 @@ -3290,8 +3290,8 @@ * 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. * * <p> <b>Usage example</b>: By default the method creates a new file or * overwrites an existing file. Suppose you instead want to append bytes @@ -3360,7 +3360,8 @@ * 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