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.17.1
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.18.0
Choose a head ref
  • 7 commits
  • 35 files changed
  • 4 contributors

Commits on Sep 16, 2025

  1. Add OpenRewrite recipe for JEP 512 instance main methods (#852)

    * Add OpenRewrite recipe for JEP 512 instance main methods
    
    Implements a migration recipe to convert `public static void main(String[] args)`
    to instance `void main()` when the args parameter is unused, as introduced in
    JEP 512 (Java 21+).
    
    The recipe:
    - Detects main methods with unused String[] args parameter
    - Removes public and static modifiers
    - Removes the unused parameter
    - Preserves formatting and annotations
    - Only applies to Java 21+ codebases
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    
    * Apply formatter
    
    * Inline named visitor
    
    * Adopt `VariableReferences.findRhsReferences`
    
    * Use ListUtils.filter instead of manual ArrayList construction
    
    Refactored the modifier filtering logic to use OpenRewrite's ListUtils.filter
    and ListUtils.mapFirst utilities for cleaner and more idiomatic code.
    
    * Condense
    
    * Suppress warnings for confusing main methods
    
    * Further simplifications for String arrays
    
    ---------
    
    Co-authored-by: Claude <noreply@anthropic.com>
    timtebeek and claude authored Sep 16, 2025
    Configuration menu
    Copy the full SHA
    72818ad View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2025

  1. Configuration menu
    Copy the full SHA
    2a1a482 View commit details
    Browse the repository at this point in the history
  2. Generate Guava InlineMethodCalls recipes using openrewrite/rewrite#6059

    … (#853)
    
    * Generate Guava InlineMethodCalls recipes using openrewrite/rewrite#6059
    
    * Add license header
    
    * Regenerate file
    
    * Read all resources now that Guava is split across two files
    timtebeek authored Sep 22, 2025
    Configuration menu
    Copy the full SHA
    bb024d5 View commit details
    Browse the repository at this point in the history
  3. Run CI on Java 25 (#851)

    * Run CI on Java 25
    
    * Consistently use Java 25 in CI workflows
    timtebeek authored Sep 22, 2025
    Configuration menu
    Copy the full SHA
    041816a View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2025

  1. Configuration menu
    Copy the full SHA
    257d4bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1111d4a View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2025

  1. Use type tables for tests (#856)

    * Fix failing `RemovalsServletJakarta10Test` tests
    
    Now using type tables.
    
    * Remove `logCompilationWarningsAndErrors()` call
    
    * Fix another failing test
    
    * Move test classpath jars to type table
    knutwannheden authored Sep 24, 2025
    Configuration menu
    Copy the full SHA
    5a66684 View commit details
    Browse the repository at this point in the history
Loading