frankvicky commented on PR #18073:
URL: https://github.com/apache/kafka/pull/18073#issuecomment-2525218139

   To ensure that all resources are closed properly during this refactoring, 
adjustments to the helper method are necessary. The original logic for creating 
resources was encapsulated within the helper method, so I extracted the 
resource creation process into the test case. This ensures that the test case 
uses `try-with-resources` first before passing the resources into the helper 
method.


-- 
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]

Reply via email to