RFR: 8274195: Doc cleanup in java.nio.file

Alan Bateman alanb at openjdk.java.net
Thu Sep 23 13:01:02 UTC 2021


On Thu, 23 Sep 2021 12:03:01 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> Please review this trivial change triggered by reading the java.nio.file documentation for an unrelated code review.

src/java.base/share/classes/java/nio/file/FileVisitResult.java line 40:

> 38:      * Continue. If returned from the {@link FileVisitor#preVisitDirectory
> 39:      * preVisitDirectory} method then the entries in the directory are also
> 40:      * visited.

"When returned" -> "If returned" is okay.  
Returning CONTINUE is an indication to the caller that the entries should be visited, maybe leave it alone or else say "are also to be visited".

-------------

PR: https://git.openjdk.java.net/jdk/pull/5649


More information about the nio-dev mailing list