-
Notifications
You must be signed in to change notification settings - Fork 114
Comparing changes
Open a pull request
base repository: openrewrite/rewrite-migrate-java
base: v3.26.0
head repository: openrewrite/rewrite-migrate-java
compare: v3.27.0
- 18 commits
- 68 files changed
- 9 contributors
Commits on Jan 24, 2026
-
Collapse
assertThatfollowed byreturninto single statementUse this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.testing.assertj.ReturnActual?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for d889ee0 - Browse repository at this point
Copy the full SHA d889ee0View commit details
Commits on Jan 26, 2026
-
Add jakarta.annotation-api dependency when using javax.annotation (#972)
When migrating from javax.annotation to jakarta.annotation, the recipe was only changing the dependency if it already existed explicitly. If the javax.annotation classes were available transitively, the migration would change the import statements but not add the jakarta.annotation-api dependency, causing compilation failures. Added AddDependency recipe to JavaxAnnotationMigrationToJakartaAnnotation to ensure the jakarta.annotation-api dependency is added when javax.annotation classes are in use, consistent with how other migration recipes handle this. Fixes moderneinc/customer-requests#1563
Configuration menu - View commit details
-
Copy full SHA for 4f2dca1 - Browse repository at this point
Copy the full SHA 4f2dca1View commit details -
Add com.sun.istack.NotNull to jakarta.validation.constraints.NotNull …
…migration (#973) This adds a ChangeType to the JavaxValidationMigrationToJakartaValidation recipe to migrate usages of the internal Sun JAXB annotation @com.sun.istack.NotNull to @jakarta.validation.constraints.NotNull. This addresses the third sub-issue in customer-requests#1526 where SpringBoot upgrade migrations were leaving com.sun.istack.NotNull imports unchanged, causing compilation errors. Fixes: moderneinc/customer-requests#1526
Configuration menu - View commit details
-
Copy full SHA for 7c3842e - Browse repository at this point
Copy the full SHA 7c3842eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49c0978 - Browse repository at this point
Copy the full SHA 49c0978View commit details -
Add UseListOf and UseSetOf recipes (#974)
Add recipes to convert double-brace initialization of ArrayList and HashSet to List.of() and Set.of() respectively for Java 10+. These recipes complement the existing UseMapOf recipe. Example transformation for UseListOf: new ArrayList<>() {{ add("a"); add("b"); }} becomes List.of("a", "b") Example transformation for UseSetOf: new HashSet<>() {{ add("a"); add("b"); }} becomes Set.of("a", "b") Fixes: moderneinc/customer-requests#1544Configuration menu - View commit details
-
Copy full SHA for 3e07f69 - Browse repository at this point
Copy the full SHA 3e07f69View commit details -
Adopt JUnit 5.14.2 where 5.13.x was pinned
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.testing.assertj.Assertj?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for 9f52d4b - Browse repository at this point
Copy the full SHA 9f52d4bView commit details
Commits on Jan 28, 2026
-
OpenRewrite recipe best practices
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for 43db7a1 - Browse repository at this point
Copy the full SHA 43db7a1View commit details -
Lombok Annotation Processor Configuration (#977)
* fix upstream problem * include Lombok enablement in Java 25 migration * add basic test to show Java 25 migration * apply best practices * add a better rendering example
Configuration menu - View commit details
-
Copy full SHA for 9dae6ab - Browse repository at this point
Copy the full SHA 9dae6abView commit details -
Migrate GraalVM resource-config.json from regex to glob patterns (#976)
* Migrate GraalVM resource-config.json from regex to glob patterns GraalVM JDK 23 changed the resource hints syntax in resource-config.json from Java regex pattern format to glob pattern format. This recipe automatically migrates the configuration files. Changes: - New recipe: MigrateGraalVMResourceConfig - Converts pattern entries to glob entries (e.g., ".*\.txt" -> "**/*.txt") - Restructures JSON from {resources: {includes: [...]}} to {resources: [...]} - Removes excludes section (no longer supported in GraalVM 23+) - Marks unconvertible patterns (character classes, alternations) for manual review Fixes moderneinc/customer-requests#1755 * Address PR review feedback - Update copyright year to 2026 - Use Tree.randomId() instead of UUID.randomUUID() - Use ListUtils.map for more concise code - Fix else-if code style (same line) - Fix string comparison order ("**".equals(glob)) - Use defaults(RecipeSpec) pattern in tests - Integrate RegexToGlobConverter into MigrateGraalVMResourceConfig (reducing public API surface per reviewer suggestion) * Address additional PR review feedback - Convert getDisplayName/getDescription methods to String fields - Use StringUtils.isNullOrEmpty() for null/empty check - Add StringUtils import * apply OR BestPractices * include in MigrateGraalVMResourceConfig into Java 25 migration * update recipesConfiguration menu - View commit details
-
Copy full SHA for 4f3aaa0 - Browse repository at this point
Copy the full SHA 4f3aaa0View commit details -
Followup after the formatting merge (#978)
* Followup after the formatting merge * Followup after the formatting merge
Configuration menu - View commit details
-
Copy full SHA for c6b1bcf - Browse repository at this point
Copy the full SHA c6b1bcfView commit details
Commits on Jan 29, 2026
-
Add avoidLineContinuations option to UseTextBlocks (#975)
Add a new recipe option `avoidLineContinuations` (default: false) that, when enabled, avoids using `\` line continuation escapes in text blocks where the content contains newlines. Non-newline-joined strings are placed on the same text block line instead. Previously with the option enabled, "foo\n" + "bar" + " baz" produces: foo bar baz Without the option (default), the existing behavior is preserved: foo bar\ baz Fixes moderneinc/customer-requests#1763Configuration menu - View commit details
-
Copy full SHA for 653dd7c - Browse repository at this point
Copy the full SHA 653dd7cView commit details
Commits on Jan 30, 2026
-
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for e13f6e8 - Browse repository at this point
Copy the full SHA e13f6e8View commit details
Commits on Feb 2, 2026
-
Configuration menu - View commit details
-
Copy full SHA for dc6029d - Browse repository at this point
Copy the full SHA dc6029dView commit details -
Make declarative recipes singletons
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.DeclarativeSingleton?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl#defaults=W3sidmFsdWUiOltdLCJuYW1lIjoiZXhjbHVzaW9ucyJ9XQ== Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for 6e525a1 - Browse repository at this point
Copy the full SHA 6e525a1View commit details
Commits on Feb 4, 2026
-
Change Docker image version in Java upgrades (#980)
* Change Docker image version in Java upgrades * Extract UpgradeDockerImageVersion to separate recipe Move Docker image version upgrade logic from UpgradeJavaVersion into its own dedicated recipe class with corresponding tests. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Change Docker image version in Java upgrades * Apply suggestions from code review * Add Debian and Ubuntu codename suffixes for Docker image upgrades Add support for more Docker image tag suffixes: - Ubuntu: bionic (18.04) - Debian: bookworm, bullseye, buster - Debian slim variants: slim-bookworm, slim-bullseye, slim-buster - Generic: -slim Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ca26543 - Browse repository at this point
Copy the full SHA ca26543View commit details
Commits on Feb 9, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 9499e38 - Browse repository at this point
Copy the full SHA 9499e38View commit details -
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.DeleteSourceFiles?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl#defaults=W3sibmFtZSI6ImZpbGVQYXR0ZXJuIiwidmFsdWUiOiIuZ2l0aHViL3dvcmtmbG93cy8qLXByLnltbCJ9XQ== Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for f42714b - Browse repository at this point
Copy the full SHA f42714bView commit details
Commits on Feb 10, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 04592ca - Browse repository at this point
Copy the full SHA 04592caView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.26.0...v3.27.0