Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #2056] Use try-with-resources to manage resources #2058

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

Dlalran
Copy link
Contributor

@Dlalran Dlalran commented Nov 1, 2022

Fixes #2056 .

Motivation

Change try-catch-finally to try-with-resource to manage resources in a class.

Modifications

Change try-catch-finally to try-with-resource in the class of org.apache.eventmesh.runtime.admin.handler.RejectClientByIpPortHandler at line 57.

Documentation

Does this pull request introduce a new feature? (yes / no) no
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@xwm1992 xwm1992 merged commit 6759c0a into apache:master Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Use try-with-resources to manage resources [RejectClientByIpPortHandler]
2 participants