diff --git a/CHANGELOG.md b/CHANGELOG.md index 71232ffb3d..23fa2d629a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/gradle.properties b/gradle.properties index f16dd8b2b2..55583be378 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=29.64.1 +version=29.64.2 group=com.linkedin.pegasus org.gradle.configureondemand=true org.gradle.parallel=true diff --git a/restli-tools/src/main/java/com/linkedin/restli/tools/idlgen/RestLiResourceModelExporter.java b/restli-tools/src/main/java/com/linkedin/restli/tools/idlgen/RestLiResourceModelExporter.java index 10300cbf8a..83d5980101 100644 --- a/restli-tools/src/main/java/com/linkedin/restli/tools/idlgen/RestLiResourceModelExporter.java +++ b/restli-tools/src/main/java/com/linkedin/restli/tools/idlgen/RestLiResourceModelExporter.java @@ -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; } }