Releases: openrewrite/rewrite-migrate-java
Releases · openrewrite/rewrite-migrate-java
v3.15.1
What's Changed
- Update with rewrite 8.60.2
- Improve Java 17 and Java 21 switch expression tests by @jevanlingen in #822
- The JakartaEE9 upgrade process supplements the jakarta.activation upg… by @ChenyuWang98 in #820
- Move all switch expression recipes to Java 21 migration by @jevanlingen in #824
- JakartaEE9 update restLet to 2.6.x by @ChenyuWang98 in #827
- Update jetty9 -> jetty12 as part of EE9 by @ChenyuWang98 in #826
- Migrate to
commons-fileupload2-jakartaby @ChenyuWang98 in #819 - Update jakarta-ee-9.yml add javax.servlet.jsp update by @ChenyuWang98 in #829
- Create recipe for
@InlineMeannotation replacements by @timtebeek in #788 - Use classpath from resource for Refaster by @jevanlingen in #830
- Fix recipe reference to
AccessControllermigration for Java 25 by @MBoegers in #832 - Update build Java 25 by @MBoegers in #833
New Contributors
- @ChenyuWang98 made their first contribution in #820
Full Changelog: v3.15.0...v3.15.1
3.15.0
What's Changed
- Convert assigning Switch statements to Switch expressions by @pdelagrave in #795
- Convert switch expressions to arrows where possible by @timtebeek in #801
- Convert switch cases with returns to returned switch expression by @timtebeek in #802
ReplaceStreamCollectWithToListshould look at return type by @timtebeek in #803- New recipe to adopt Lombok setter method names by @timo-a in #632
- refactor: Static imports for Collections and Collectors by @timtebeek in #804
- Preserve whitespace in
MigrateCollectionsUnmodifiableListby @timtebeek in #806 - rename settings.local.json to settings.json by @zieka in #808
- The quick fix for the tests for Jaxws Dependencies by @steve-aom-elliott in #809
- Refactor RewriteTest to use defaults method by @timtebeek in #814
- Create
ismethods for boolean fields inLombokValueToRecordby @timtebeek in #813 - Joda-time: Make safe migration optional by @amishra-u in #811
- Improve "Add explicit Common Annotations dependencies" in "Migrate to Java 11" by @jevanlingen in #816
- chore(ci): bump actions/checkout from 4 to 5 by @dependabot[bot] in #817
Full Changelog: v3.14.0...v3.15.0
3.14.1
What's Changed
- OpenRewrite v8.59.1: https://github.com/openrewrite/rewrite
Full Changelog: https://github.com/openrewrite/rewrite-migrate-java
3.14.0
What's Changed
NullCheckAsSwitchCaseshould only addnullcase if the switch is exhaustive by @Jenson3210 in #769- Let all change-to-var recipes use a created var-Identifier instead of using a JavaTemplate by @jevanlingen in #793
- Fix NPE in IteratorNext recipe when iterator() has no explicit receiver by @jkschneider in #796
LombokValueToRecordshould rewrite method references too by @holgpar in #469- Update test expectations to now finish idempotent
ChangeTagAttributein a single cycle by @pdelagrave in #797 - refactor: Unwrap else block after return or throw statement by @timtebeek in #798
Full Changelog: v3.13.0...v3.14.0
3.13.0
What's Changed
- refactor: org.openrewrite.mavencentral by @Laurens-W in #778
- Do not add explicit
Recordclass import if usingvarkeyword by @timtebeek in #781 - Correct groupId for
jakarta.annotation:jakarta.annotation-apiupgrade by @steve-aom-elliott in #784 - Keep
jakarta.annotation-apidependency when moving to Jakarta with Spring Boot project and Jakarta annotations are used by @jevanlingen in #782 - Add Bouncy Castle upgrade recipe for Java < 8 by @pdelagrave in #790
- Fix
LombokValToFinalVarin loops by @MBoegers in #768 - Replace JavaTemplate by a
varidentifier element for UseVarForGenericsConstructors recipe by @jevanlingen in #789 - Add missing type table entries by @timtebeek in #792
- Migrate Lombok's
@__syntax toonX_for Java 8+ by @timtebeek in #794
New Contributors
- @pdelagrave made their first contribution in #790
Full Changelog: v3.12.0...v3.13.0
3.12.0
What's Changed
- Add JSpecify best practices recipe by @timtebeek in #744
- New recipe to only add JAXB API dependencies without runtime dependencies by @rlsanders4 in #727
- Create Faces 3.0 migration by @evie-lau in #742
- Insert
<shared-cache-mode>before<properties>to ensure correct schema order by @Avneesh-Dubey in #737 - Fixing variable names in tests by @greg-at-moderne in #745
- Switch case add enum values as guards by @Jenson3210 in #750
- Add recipe to replace ManagedBean with Named annotation by @evie-lau in #753
- Pick better SDKMan versions by @timtebeek in #754
- Use ParameterizedClass in test by @evie-lau in #756
- Recipes for searching Threads or Executors usage by @arodionov in #722
- Adapting to AddDependencyVisitor constructor change by @greg-at-moderne in #758
- Make fields annotated with
@Producesstatic by @karthikNousher in #755 - Migrate Traits class usage to constructor calls by @MBoegers in #759
- Set
acceptTransitiveto true for JSpecify recipes by @scordio in #761 - Add only declarable Gradle jax-ws runtime dependencies by @jevanlingen in #762
- Refine switch cases by @Jenson3210 in #749
- Null check as switch case by @Jenson3210 in #748
- Change net.wasdev.maven.parent:java8-parent to :parent by @BhavanaPidapa in #766
- Adds direct Jakarta dependency if only available as transitive by @bmuschko in #767
- Fix for
UpdateSdkManallowing downgrade of Java version by @steve-aom-elliott in #771 - feat: Prevent migration of singletonMap with null value or null key by @ZzetT in #772
- refactor: Adopt
J.Literal.isLiteralValue(expression, null)by @timtebeek in #773 - If Else-If construct to switch. by @Jenson3210 in #747
- Improved the support of types by @Jenson3210 in #774
- Some compilation issues are occuring after running switch pattern matching recipe by @Jenson3210 in #775
- Update java-version-21.yml by @Jenson3210 in #777
- Update AddStaticVariableOnProducerSessionBean to modify XML defined EJBs by @karthikNousher in #765
New Contributors
- @rlsanders4 made their first contribution in #727
- @Avneesh-Dubey made their first contribution in #737
- @Jenson3210 made their first contribution in #750
- @arodionov made their first contribution in #722
- @scordio made their first contribution in #761
- @jevanlingen made their first contribution in #762
- @ZzetT made their first contribution in #772
Full Changelog: v3.11.0...v3.12.0
3.11.0
3.10.1
Full Changelog: v3.10.0...v3.10.1
3.10.0
What's Changed
- Migrate
com:intellij:annotationstoorg.jetbrains:annotationsby @steve-aom-elliott in #719 - JavaxMailToJakartaMail recipe should support the migration of javax.mail:mail by @bmuschko in #721
- JavaxWsToJakartaWs recipe does not add jakarta.ws.rs-api when upgrading from JavaEE 8 to JavaEE 9 by @bmuschko in #723
- Update Module provided recipes to use the provided scope by @cjobinabo in #725
- Update module provided recipes by @cjobinabo in #726
- Upgrade existing jakarta.annotation-api to 2.0.x for EE9 by @evie-lau in #729
- Recursive package change last in jakarta-ee-9.yml by @timtebeek in #732
- Ensure jakarta.annotation dependency is provided scope. Add/change tests by @evie-lau in #734
- Improve JakartaXmlWs recipe by @evie-lau in #735
- Make
org.openrewrite.java.migrate.lombok.log.LogVisitorpublic to avoid class loader access issues when loading recipe by @bryceatmoderne in #738
New Contributors
- @steve-aom-elliott made their first contribution in #719
- @bmuschko made their first contribution in #721
- @bryceatmoderne made their first contribution in #738
Full Changelog: v3.9.0...v3.10.0
3.9.0
What's Changed
- refactor: OpenRewrite Recipe best practices by @timtebeek in #711
- Security Manager API Removal by @MBoegers in #713
- Remove and cleanup
System.getSecurityManager()by @MBoegers in #716 - UseImportPolicy in NoGuavaRefaster by @timtebeek in #717
Full Changelog: v3.8.0...v3.9.0