mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8274195: Doc cleanup in java.nio.file
Reviewed-by: alanb, lancea, bpb
This commit is contained in:
parent
1fdc656084
commit
5ffbe75557
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -65,7 +65,7 @@ import java.io.IOException;
|
||||||
* using the {@code Iterator}, behaves as if the end of stream has been reached.
|
* using the {@code Iterator}, behaves as if the end of stream has been reached.
|
||||||
* Due to read-ahead, the {@code Iterator} may return one or more elements
|
* Due to read-ahead, the {@code Iterator} may return one or more elements
|
||||||
* after the directory stream has been closed. Once these buffered elements
|
* after the directory stream has been closed. Once these buffered elements
|
||||||
* have been read, then subsequent calls to the {@code hasNext} method returns
|
* have been read, then subsequent calls to the {@code hasNext} method return
|
||||||
* {@code false}, and subsequent calls to the {@code next} method will throw
|
* {@code false}, and subsequent calls to the {@code next} method will throw
|
||||||
* {@code NoSuchElementException}.
|
* {@code NoSuchElementException}.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1203,8 +1203,8 @@ public final class Files {
|
||||||
* which case the method completes without copying the file. File attributes
|
* which case the method completes without copying the file. File attributes
|
||||||
* are not required to be copied to the target file. If symbolic links are
|
* are not required to be copied to the target file. If symbolic links are
|
||||||
* supported, and the file is a symbolic link, then the final target of the
|
* supported, and the file is a symbolic link, then the final target of the
|
||||||
* link is copied. If the file is a directory then it creates an empty
|
* link is copied. If the file is a directory then an empty directory is
|
||||||
* directory in the target location (entries in the directory are not
|
* created in the target location (entries in the directory are not
|
||||||
* copied). This method can be used with the {@link #walkFileTree
|
* copied). This method can be used with the {@link #walkFileTree
|
||||||
* walkFileTree} method to copy a directory and all entries in the directory,
|
* walkFileTree} method to copy a directory and all entries in the directory,
|
||||||
* or an entire <i>file-tree</i> where required.
|
* or an entire <i>file-tree</i> where required.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue