Skip to content

Conversation

@danthe1st
Copy link
Contributor

@danthe1st danthe1st commented Aug 5, 2024

This PR makes minor changes to the modern IO article which has been written by @cayhorstmann in #66.

These changes include:

  • using a try-with-resources block to the InputStream#transferTo example.
  • fixing a typo in the following sentence:

    Two Files.newDirectoryStream methods yields DirectoryStream instances, which can be used in enhanced for loops. There is no advantage over using Files.list.

  • adding a last_review timestamp. I didn't change the last_update because I didn't make significant content changes.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 5, 2024
Copy link
Collaborator

@ammbra ammbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you, Dan.

@danthe1st
Copy link
Contributor Author

danthe1st commented Sep 26, 2024

(fixed merge conflicts - diff before and after should be the same)

@ammbra ammbra merged commit 5bde670 into java:main Oct 24, 2025
@danthe1st danthe1st deleted the modern-io-typo branch October 24, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants