Releases: openrewrite/rewrite-migrate-java
Releases · openrewrite/rewrite-migrate-java
3.18.0
What's Changed
- Add OpenRewrite recipe for JEP 512 instance main methods by @timtebeek in #852
- Generate Guava InlineMethodCalls recipes using openrewrite/rewrite#6059 by @timtebeek in #853
- Run CI on Java 25 by @timtebeek in #851
- Generate recipes for Guava 33.5.0-jre by @timtebeek in #854
- Use type tables for tests by @knutwannheden in #856
Full Changelog: v3.17.1...v3.18.0
v3.17.1
What's Changed
- Java 25: Migrate
new StringReader(String)
toReader.of(CharSequence)
by @JohannisK in #845 - Rename TypeTable file by @timtebeek in #847
- Update type tables via
./gradlew createTypeTable
by @Jenson3210 in #850 - Add recipe to migrate
System.out.print/println
toIO.print/println
by @e5LA in #848
New Contributors
Full Changelog: v3.17.0...v3.17.1
3.17.0
What's Changed
- Upgrading spotbugs plugin and mapstruct by @steve-aom-elliott in #818
- Migrate to
Process#waitFor(Duration)
as part of Java 25 upgrade by @JohannisK in #840 - Inflater deflater autoclosable by @JohannisK in #843
- Java 25: Unused variable to underscore by @JohannisK in #844
- Use
ZipException
instead of the deprecatedZipError
by @JohannisK in #841
Full Changelog: v3.16.0...v3.17.0
3.16.0
What's Changed
- Fixed validation.xml in jakarta-ee-10.yml by @daniel-skovenborg in #834
- Adding
jakarta.servlet:jakarta.servlet-api
explicitly when thejavax.servlet:javax.servlet-api
it is trying to migrate from was only available transitively. by @steve-aom-elliott in #835 - Drop Joda-Time recipes extracted to rewrite-joda by @timtebeek in #836
- Adopt
InlineMethodCalls
fromopenrewrite/rewrite
by @timtebeek in #837 - AddJaxbRuntime should use
overrideManagedDependency=true
by @timtebeek in #838
New Contributors
- @daniel-skovenborg made their first contribution in #834
Full Changelog: v3.15.1...v3.16.0
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-jakarta
by @ChenyuWang98 in #819 - Update jakarta-ee-9.yml add javax.servlet.jsp update by @ChenyuWang98 in #829
- Create recipe for
@InlineMe
annotation replacements by @timtebeek in #788 - Use classpath from resource for Refaster by @jevanlingen in #830
- Fix recipe reference to
AccessController
migration 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
ReplaceStreamCollectWithToList
should 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
MigrateCollectionsUnmodifiableList
by @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
is
methods for boolean fields inLombokValueToRecord
by @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
NullCheckAsSwitchCase
should only addnull
case 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
LombokValueToRecord
should rewrite method references too by @holgpar in #469- Update test expectations to now finish idempotent
ChangeTagAttribute
in 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
Record
class import if usingvar
keyword by @timtebeek in #781 - Correct groupId for
jakarta.annotation:jakarta.annotation-api
upgrade by @steve-aom-elliott in #784 - Keep
jakarta.annotation-api
dependency 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
LombokValToFinalVar
in loops by @MBoegers in #768 - Replace JavaTemplate by a
var
identifier 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
@Produces
static by @karthikNousher in #755 - Migrate Traits class usage to constructor calls by @MBoegers in #759
- Set
acceptTransitive
to 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
UpdateSdkMan
allowing 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