Releases: openrewrite/rewrite-static-analysis
Releases · openrewrite/rewrite-static-analysis
2.26.0
What's Changed
- Replace
getDisplayName()andgetDescription()methods with fields by @timtebeek in #805 - Replace
getTags()method with field by @timtebeek in #806 - Replace
getEstimatedEffortPerOccurrence()method with field by @timtebeek in #807
Full Changelog: v2.25.0...v2.26.0
2.25.0
What's Changed
ReplaceWeekYearWithYearshould not replace valid week-year usages by @tginsberg in #801
New Contributors
- @tginsberg made their first contribution in #801
Full Changelog: v2.24.0...v2.25.0
2.24.0
2.23.0
What's Changed
- Prepare formatting refactor by @Jenson3210 in #790
- Fix
AnnotateRequiredParametersto handleObjects.requireNonNullin assignments by @timtebeek in #793 AnnotateRequiredParametersshould not remove nested if blocks by @timtebeek in #794- Fix RemoveUnusedLocalVariables to delete unused local variables inside method invocation argument blocks by @Jenson3210 in #795
Full Changelog: v2.22.0...v2.23.0
2.22.0
What's Changed
- Prevent
AnnotateNullableMethodsfrom failing on TypeScript sources by @greg-at-moderne in #773 - Fix CombineSemanticallyEqualCatchBlocks for inner exception types by @timtebeek in #772
- Handle single quotes in ReplaceStringBuilderWithString by @timtebeek in #775
- Prevent
ReplaceLambdaWithMethodReferencein nested generic/overloaded contexts by @timtebeek in #776 - Fix ReplaceLambdaWithMethodReference for local records and classes by @timtebeek in #777
- Move nullable annotations to array types by @timtebeek in #778
- Annotate nullable array type parameters by @timtebeek in #779
- Annotate required parameters with
@NonNulland remove throws by @timtebeek in #782 - Skip UnnecessaryCatch after any missing types via a precondition by @timtebeek in #784
- Run
UnnecessaryCatchafterUnnecessaryThrowsto remove unused catch clauses by @timtebeek in #785 - Add JavascriptFileChecker to selectively skip JavaScript files by @timtebeek in #787
- Fix
RemoveUnusedLocalVariablesto preserve assignments with side effects by @timtebeek in #741
Full Changelog: v2.21.0...v2.22.0
2.21.0
What's Changed
- Retain necessary null checks in EqualsAvoidsNull by @timtebeek in #761
- Fix RemoveUnusedLocalVariables producing invalid pattern matching code by @timtebeek in #762
- Use constructor changed in rewrite-core by @Jenson3210 in #763
- Add recipe to reorder annotation attributes by @timtebeek in #764
- Gradle 9.2.0 by @timtebeek in #766
- Improve
CovariantEqualsfor kotlin by @Laurens-W in #765 - Limit
RemoveSystemOutPrintlntoSystem.outandSystem.errby @timtebeek in #770 - Replace empty String concatenation with
String.valueOf()by @timtebeek in #634
Full Changelog: v2.20.0...v2.21.0
2.20.0
What's Changed
- Avoid incorrect changes to Kotlin in RemoveUnusedLocalVariables by @timtebeek in #755
- Fix EqualsAvoidsNull to remove redundant null checks when literal is already on left side by @timtebeek in #756
- OpenRewrite recipe best practices by @timtebeek in #758
- Fix RemoveUnusedPrivateFields for Lombok annotations after visibility modifiers by @timtebeek in #759
Full Changelog: v2.19.0...v2.20.0
2.19.0
What's Changed
- Fix FinalClass recipe to correctly handle nested static subclasses by @timtebeek in #742
- Add
Objects.requireNonNullElse/ElseGetsupport toAnnotateNullableParametersby @timtebeek in #743 - Fix ReplaceLambdaWithMethodReference handling of nested class imports by @timtebeek in #745
- OpenRewrite recipe best practices by @timtebeek in #746
- Update recipe documentation examples by @timtebeek in #747
- Support for-each loop in NeedBraces by @timtebeek in #749
- Update documentation examples by @timtebeek in #750
- Update documentation examples by @timtebeek in #751
- fixed test that got changed behavior in rewrite-core by @Jenson3210 in #753
- No longer remove String.valueof when it's called on a method invocation by @Laurens-W in #752
New Contributors
- @Jenson3210 made their first contribution in #753
Full Changelog: v2.18.0...v2.19.0
2.18.0
What's Changed
- Add configurable null-checking methods to AnnotateNullableParameters by @stefanodallapalma in #737
- AnnotateNullableMethods: annotate methods that return nullable method… by @stefanodallapalma in #738
- Naming conflict in
InstanceOfPatternMatchby @timtebeek in #739
Full Changelog: v2.17.0...v2.18.0