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

[FEATURE] @Cleanup try-with-resources #3715

Open
ygModesto opened this issue Aug 1, 2024 · 0 comments
Open

[FEATURE] @Cleanup try-with-resources #3715

ygModesto opened this issue Aug 1, 2024 · 0 comments

Comments

@ygModesto
Copy link

ygModesto commented Aug 1, 2024

Hello,

I've seen that @Cleanup generates code like in the documentation https://projectlombok.org/features/Cleanup#vanilla-java.

Is there any reason not to use try-with-resources as Java recommends to avoid the problems that this same documentation argues?
https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

I appreciate the work :)

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

No branches or pull requests

1 participant