devCod3r opened a new pull request, #3776: URL: https://github.com/apache/eventmesh/pull/3776
Fixes #3012 ### Motivation *This method allocates and uses an auto closeable resource. However, it manually closes the resource in a finally block. While this is correct management, it doesn't rely on the idiomatic way available to JDK 7 and above, allows for possible subtle problems, and complicates the reading of code by developers expecting the use of try-with-resources.* *Fixes the above mentioned issue.* Issue #3012 ### Modifications *Changed conventional try-catch-finally block to try-with-resources* ### Documentation - Does this pull request introduce a new feature? - Ans: no - If a feature is not applicable for documentation, explain why? - Ans: modified conventional try, catch, finally block to try-with-resources. -- 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: dev-unsubscr...@eventmesh.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@eventmesh.apache.org For additional commands, e-mail: dev-h...@eventmesh.apache.org