<!-- Thank you for suggesting an improvement to OpenRewrite! Feel free to delete any sections that don't apply to your request. --> ## What problem are you trying to solve? - https://github.com/apache/maven/pull/2426 - https://pmd.github.io/pmd/pmd_rules_java_bestpractices.html#usetrywithresources - https://mail.openjdk.org/pipermail/coin-dev/2009-April/001503.html ## Describe the solution you'd like - https://www.baeldung.com/java-try-with-resources ## Have you considered any alternatives or workarounds? ide fix: <img width="1642" alt="Image" src="https://github.com/user-attachments/assets/b77b5f0d-4393-497a-8249-228c9a574ed9" /> ## Additional context <!-- Any thoughts that come to mind, or similar items on the backlog already. --> ## Are you interested in [contributing this feature to OpenRewrite](https://github.com/openrewrite/.github/blob/main/CONTRIBUTING.md#new-features)? <!-- Indicate if this is something you would like to work on, and how we can best support you in doing so. -->
What problem are you trying to solve?
try-with-resourcesstatement inLookupWagonMojoapache/maven#2426Describe the solution you'd like
Have you considered any alternatives or workarounds?
ide fix:
Additional context
Are you interested in contributing this feature to OpenRewrite?