rewrite-migrate-java
rewrite-migrate-java copied to clipboard
OpenRewrite recipes for migrating to newer versions of Java.
## What problem are you trying to solve? It would be neat to have a capability to convert a `class` to a `record` ## What precondition(s) should be checked before...
## What version of OpenRewrite are you using? rewrite-recipe-bom 2.5.1 ## How are you running OpenRewrite? maven plugin 5.14.1 ## What is the smallest, simplest way to reproduce the problem?...
## What's changed? ## What's your motivation? To fix failures occurring in moderne.io runs, examples: * spring-cloud/spring-cloud-contract @ main: spring-cloud-contract-verifier/src/test/resources/contractsToCompile/contract_multipart.java java.lang.IllegalArgumentException: Unable to parse expression from JavaType Unknown * spring-projects/spring-data-commons...
## What problem are you trying to solve? Add recipe for [JEP 441: Pattern Matching for switch](https://openjdk.org/jeps/441) to improve Java 21 migration (and possibly also for the related [JEP 440:...
From the https://www.joda.org/joda-time/ website > The standard date and time classes prior to Java SE 8 are poor. By tackling this problem head-on, Joda-Time became the de facto standard date...
We were already using Java 11 but the recipe list of 'Migrate Java 11' contained some nice recipes. Ran it. We are using Maven. I noticed that after running the...
There is a Maven plugin for generating code from XSDs and this must be updated to a version that supports Java 11: Version `2.5.0` of the plugin supports Java 11....
...and maybe ask to be included in resources list on its README? https://github.com/gaul/modernizer-maven-plugin/blob/master/modernizer-maven-plugin/src/main/resources/modernizer.xml
## What problem are you trying to solve? The `com.intellij:annotations` package was relocated to `org.jetbrains:annotations` after v12 (2013) This caused confusion and many teams are unaware and still using the...
## What version of OpenRewrite are you using? rewrite-maven-plugin:5.4.2 ## How are you running OpenRewrite? From terminal via maven on a single module maven project. I run open Rewrite against...