8274195: Doc cleanup in java.nio.file
Reviewed-by: alanb, lancea, bpb
This commit is contained in:
parent
1fdc656084
commit
5ffbe75557
src/java.base/share/classes/java/nio/file
@ -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.
|
||||
*
|
||||
* 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.
|
||||
* Due to read-ahead, the {@code Iterator} may return one or more 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 NoSuchElementException}.
|
||||
*
|
||||
|
@ -1203,8 +1203,8 @@ public final class Files {
|
||||
* 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
|
||||
* 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
|
||||
* directory in the target location (entries in the directory are not
|
||||
* link is copied. If the file is a directory then an empty directory is
|
||||
* created in the target location (entries in the directory are not
|
||||
* copied). This method can be used with the {@link #walkFileTree
|
||||
* walkFileTree} method to copy a directory and all entries in the directory,
|
||||
* or an entire <i>file-tree</i> where required.
|
||||
|
Loading…
x
Reference in New Issue
Block a user