Skip to content

Add UseTryWithResources to Java 11 migration recipe#1022

Merged
timtebeek merged 1 commit intomainfrom
tim/add-try-with-resources
Mar 21, 2026
Merged

Add UseTryWithResources to Java 11 migration recipe#1022
timtebeek merged 1 commit intomainfrom
tim/add-try-with-resources

Conversation

@timtebeek
Copy link
Member

Summary

  • Adds the UseTryWithResources recipe from rewrite-static-analysis to the Java8toJava11 migration recipe list, alongside the existing static analysis recipes in the deprecation remediation section.
  • Try-with-resources is a Java 7+ language feature, so encouraging its adoption fits naturally in the Java 11 modernization path.

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 21, 2026
@timtebeek timtebeek merged commit 41d7ca1 into main Mar 21, 2026
1 check passed
@timtebeek timtebeek deleted the tim/add-try-with-resources branch March 21, 2026 10:40
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant