RFR: 8327046: (fs) Files.walk should be clear that depth-first traversal is pre-order [v2]

Pavel Rappo prappo at openjdk.org
Thu Feb 29 15:03:18 UTC 2024


On Thu, 29 Feb 2024 13:06:04 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

>> Please review this clarification to the specification of the two overloads of `java.nio.file.Files.walk`. No tests are added, as I believe the existing `StreamTest.testWalk*` methods already test the order sufficiently. I also took this opportunity to fix a few minor typos.
>
> Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Oops.

You are right. Although in-order, pre-order and post-order are all well-known terms, there are no occurrences of them in the java.base API documentation. Fixed closely to what you proposed; please examine 5ffccf3.

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

PR Comment: https://git.openjdk.org/jdk/pull/18063#issuecomment-1971325845


More information about the nio-dev mailing list