Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openrewrite/rewrite-migrate-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.28.0
Choose a base ref
...
head repository: openrewrite/rewrite-migrate-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.29.0
Choose a head ref
  • 5 commits
  • 17 files changed
  • 4 contributors

Commits on Feb 27, 2026

  1. Configuration menu
    Copy the full SHA
    aa49b8f View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2026

  1. Add @requiredargsconstructor and @AllArgsConstructor recipes (#996)

    * Add UseRequiredArgsConstructor and UseAllArgsConstructor recipes
    
    Replace explicit constructors that only assign final fields with
    @requiredargsconstructor, and constructors that assign all non-static
    fields with @AllArgsConstructor. Both handle access levels and
    onConstructor_ for transferred annotations like @Autowired.
    
    * Regenerate recipes.csv
    jkschneider authored Mar 1, 2026
    Configuration menu
    Copy the full SHA
    c0f7b7d View commit details
    Browse the repository at this point in the history
  2. Use classpathFromResources for lombok in Java templates (#997)

    `classpath("lombok")` resolves the classpath entry from the
    classloader, which fails when the version-specific parser is
    loaded by a different classloader. Switch to
    `classpathFromResources(ctx, "lombok")` which resolves via
    the resource path instead.
    
    Also add lombok to the parserClasspath in build.gradle.kts and
    update classpath.tsv.gz accordingly.
    jkschneider authored Mar 1, 2026
    Configuration menu
    Copy the full SHA
    eec22b2 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2026

  1. Fix IfElseIfConstructToSwitch type attribution for non-JDK types (#994

    )
    
    * Fix IfElseIfConstructToSwitch type attribution for non-JDK types
    
    JavaTemplate uses raw string substitution (#{}) for class names in
    generated switch cases. The template parser can resolve JDK types
    like Integer (in java.lang) but cannot resolve non-JDK types from
    just a name string, producing missing type information on case labels.
    
    Add fixTypeAttribution() post-processing that restores original type
    information from the instanceof checks onto the generated switch case
    variable declarations.
    
    Re-enable the recipe in UpgradeToJava21.
    
    * Use ListUtils.map in fixTypeAttribution
    timtebeek authored Mar 2, 2026
    Configuration menu
    Copy the full SHA
    53b3725 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42fd45a View commit details
    Browse the repository at this point in the history
Loading