Skip to content

Ensure resources closed during resource model export. #1041

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ and what APIs have changed, if applicable.

## [Unreleased]

## [29.64.2] - 2025-02-28
- Ensure resources closed during resource model export.

## [29.64.1] - 2025-02-15
- Fix warmUp -- record service as used regardless of whether getClient succeeds

Expand Down Expand Up @@ -5773,7 +5776,8 @@ patch operations can re-use these classes for generating patch messages.

## [0.14.1]

[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.64.1...master
[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.64.2...master
[29.64.2]: https://github.com/linkedin/rest.li/compare/v29.64.1...master
[29.64.1]: https://github.com/linkedin/rest.li/compare/v29.64.0...v29.64.1
[29.64.0]: https://github.com/linkedin/rest.li/compare/v29.63.2...v29.64.0
[29.63.2]: https://github.com/linkedin/rest.li/compare/v29.63.1...v29.63.2
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=29.64.1
version=29.64.2
group=com.linkedin.pegasus
org.gradle.configureondemand=true
org.gradle.parallel=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,9 @@ private File writeIDLFile(File outdirFile,
log.debug("Writing file '" + fileName + '\'');
final File file = new File(outdirFile, fileName);

_codec.writeResourceSchema(rootResourceNode, new FileOutputStream(file));
try (FileOutputStream stream = new FileOutputStream(file)) {
_codec.writeResourceSchema(rootResourceNode, stream);
}
return file;
}
}