Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes uses of the deprecated IOUtils.closeQuietly #1281

Merged
merged 4 commits into from
Feb 15, 2020

Conversation

emmebi
Copy link
Collaborator

@emmebi emmebi commented Feb 15, 2020

  • wherever possible, use of IOUtils.closeQuietly has been replaced with try-with-resources
  • deprecates copyWithClose (no more needed)
  • removes some duplication in the save method of PackedFile

A few invocations have been left out, mostly because there seem to be assumptions on when the close
will actually happen, and we don't have a lot of tests around these methods.

Refers to #1215


This change is Reviewable

- wherever possible, use of IOUtils.closeQuietly has been replaced with try-with-resources
- deprecates copyWithClose (no more needed)
- removes some duplication in the save method of PackedFile

A few invocations have been left out, mostly because there seem to be assumptions on when the close
will actually happen, and we don't have a lot of tests around these methods.
- removes the last use of copyWithClose
- also, replaces yet another try/finally with try-with-resources

Refers to RPTools#1215
- removes the last use of copyWithClose
- also, replaces yet another try/finally with try-with-resources

Refers to RPTools#1215
Copy link
Contributor

@Phergus Phergus left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 11 of 11 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@Phergus Phergus merged commit 515ddf0 into RPTools:develop Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants