jiangzho opened a new pull request, #912: URL: https://github.com/apache/spark-kubernetes-operator/pull/912
### What changes were proposed in this pull request? Wrap the `PrintWriter` used in `ConfOptionDocGenerator.generate()` in a try-with-resources statement instead of a manual `close()` call. ### Why are the changes needed? The writer was not guaranteed to be closed if an exception occurred while writing the docs table, risking a resource leak. ### How was this patch tested? Existing unit tests for `ConfOptionDocGenerator` cover doc generation; no behavior change, only resource-safety. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-sonnet-5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
