rewrite-migrate-java
rewrite-migrate-java copied to clipboard
OpenRewrite recipes for migrating to newer versions of Java.
## What's changed? OpenJPA -> EclipseLink recipe Add `@Transient` annotation to private accessor methods ## What's your motivation? https://wiki.eclipse.org/EclipseLink/Examples/JPA/Migration/OpenJPA/Mappings#Private_Accessor_Methods ## Anything in particular you'd like reviewers to focus on? Question...
## What problem are you trying to solve? I am running the JDK17 update recipe. But once the recipe is run and I am trying to test it out I...
## What's changed? Created RemovedToolProviderConstructor Recipe: For the following rule:  ## What's your motivation? This recipe checks for a specific method pattern and converts it to a static call.The...
## How are you running OpenRewrite? I am using the Maven plugin, and my project is a single module project. ```xml org.openrewrite.maven rewrite-maven-plugin 5.23.1 org.openrewrite.java.migrate.guava.NoGuavaJava11 true org.openrewrite.recipe rewrite-migrate-java 2.10.0 ```...
## How are you running OpenRewrite? I am using the Maven plugin, and my project is a single module project. ```xml org.openrewrite.maven rewrite-maven-plugin 5.23.1 org.openrewrite.java.migrate.guava.NoGuavaJava11 true org.openrewrite.recipe rewrite-migrate-java 2.10.0 ```...
Unfortunately, `J.MemberReference` does not have a methodType when the member reference is through an object. When it is throught a class (to a static method) it works as expected... ##...
## What version of OpenRewrite are you using? - OpenRewrite v1.2.3 - Maven/Gradle plugin v1.2.3 - rewrite-_module_ v1.2.3 ## How are you running OpenRewrite? From the sources of `rewrite-migrate-java`. ##...
## What version of OpenRewrite are you using? - OpenRewrite v8.24.0 - rewrite-migrate-java v2.12.0 ## How are you running OpenRewrite? I'm running `org.openrewrite.java.migrate.net.URLConstructorsToURI.URLThreeArgumentConstructorRecipe`, via: https://github.com/openrewrite/rewrite-migrate-java/blob/f399d72046b68fd0820a6b326badfd5ff9482105/src/main/java/org/openrewrite/java/migrate/net/URLConstructorsToURI.java#L44-L58 ## What is the smallest,...
## What version of OpenRewrite are you using? **Latest** ## How are you running OpenRewrite? CLI using `mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.migrate.jakarta.JakartaEE10` CDI Spec: https://jakarta.ee/specifications/cdi/2.0/cdi-spec-2.0.pdf Before conversion: ```java package org.primefaces.showcase.view.overlay;...
## What problem are you trying to solve? Currently, the `AddMissingMethodImplementation` checks primarily for existing method declarations on the visited class declaration. It does not check whether the visited class...