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-static-analysis
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.22.0
Choose a base ref
...
head repository: openrewrite/rewrite-static-analysis
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.23.0
Choose a head ref
  • 5 commits
  • 10 files changed
  • 5 contributors

Commits on Nov 25, 2025

  1. Prepare formatting refactor (#790)

    NestedEnumsAreNotStatic.java -> body is not nullable. If we do not want to format the body, we should stop formatting after the class name.
    
    NeedBraces.java -> do not keep comments of the object that moved
    
    NeedBracesTest.java -> Do not expect that this test makes changes to the body parentheses.
    Jenson3210 authored Nov 25, 2025
    Configuration menu
    Copy the full SHA
    6eab4c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df434ea View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2025

  1. Fix AnnotateRequiredParameters to handle Objects.requireNonNull i…

    …n assignments (#793)
    
    When `Objects.requireNonNull(bar, "message")` was used in an assignment like
    `this.field = Objects.requireNonNull(bar, "message")`, the recipe incorrectly
    produced `this.field;` instead of `this.field = bar`.
    
    The fix checks whether the method invocation is a standalone statement (parent
    is `J.Block`) or part of a larger expression (e.g., assignment). Standalone
    statements are removed entirely, while expressions are replaced with the first
    argument to preserve valid syntax.
    
    Fixes #792
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-authored-by: Claude <noreply@anthropic.com>
    timtebeek and claude authored Nov 26, 2025
    Configuration menu
    Copy the full SHA
    65b6188 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2025

  1. Configuration menu
    Copy the full SHA
    e98aef6 View commit details
    Browse the repository at this point in the history
  2. Fix RemoveUnusedLocalVariables to delete unused local variables insid…

    …e method invocation argument blocks (lambdas, anonymous classes...) to avoid ClassCastException (#795)
    Jenson3210 authored Nov 28, 2025
    Configuration menu
    Copy the full SHA
    cc90fe8 View commit details
    Browse the repository at this point in the history
Loading