openrewrite / rewrite

Automated mass refactoring of source code.
https://docs.openrewrite.org
Apache License 2.0
2.15k stars 321 forks source link

org.openrewrite.java.cleanup.FinalizeMethodArguments drops parameters if preceding ones have final! #3133

Closed blipper closed 1 year ago

blipper commented 1 year ago
class Foo {
  int test(final int a, int b) {
      return a + b;
  }
}

transforms to

class Foo {
  int test(final int b) {
      return a + b;
  }
}
sambsnyd commented 1 year ago

Thanks for letting us know @blipper ! @kunli2 this would be a good one to fix next

kunli2 commented 1 year ago

Thanks for reporting, fixed now.