williamwl opened a new pull request, #1957:
URL: https://github.com/apache/incubator-eventmesh/pull/1957

   fixes #<1509>
   
   ### Motivation
   
   Enhancement Request
   located at:org/apache/eventmesh/admin/rocketmq/handler/TopicsHandler.java 
line 102
   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.
   
   
   ### Modifications
   
    use try-with-resources to manage the closure of 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: [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]

Reply via email to