Releases: openrewrite/rewrite-static-analysis
Releases · openrewrite/rewrite-static-analysis
2.11.0
What's Changed
- Applying code suggestions by @greg-at-moderne in #576
- Do not pull Supertype-Cast to instanceof by @dnl50 in #577
- Created AnnotateNullableParameters recipe by @stefanodallapalma in #578
- Handle nested types in AnnotateNullableMethods by @timtebeek in #579
- Initialize JetBrains Junie 🚀 by @jetbrains-junie in #583
- Changed implementation in FallThroughVisitor to detect infinite loops by @JohannisK in #581
- Revert "Initialize JetBrains Junie 🚀" by @knutwannheden in #585
- Fix typos by @iddeepak in #588
- Add
@Serial
fromJavaParser.dependsOn
by @timtebeek in #587 - Migrate Traits class usage to constructor calls by @MBoegers in #590
- Reordering Annotations by @steve-aom-elliott in #544
- Order type annotations last by @timtebeek in #594
- fix: filter out methods not invoked from an identifier by @pdelagrave in #595
- Added unit test for minimum switch cases with bitwise operation. by @LakshyaKwatra in #596
- refactor: Adopt
J.Literal.isLiteralValue(expression, null)
by @timtebeek in #600 - Add regression test to verify that no default import order style is applied by @LakshyaKwatra in #597
New Contributors
- @dnl50 made their first contribution in #577
- @jetbrains-junie made their first contribution in #583
- @iddeepak made their first contribution in #588
- @pdelagrave made their first contribution in #595
- @LakshyaKwatra made their first contribution in #596
Full Changelog: v2.10.0...v2.11.0
2.10.0
What's Changed
- Handle static method calls when removing unnecessary explicit type arguments. by @JohannisK in #547
- SimplifyConstantIfBranchExecution leaves unreachable code by @steve-aom-elliott in #546
- Configurable NoFinalizedLocalVariables for excluding methods parameters by @steve-aom-elliott in #548
- TestNG matching for RemoveUnneededAssertion by @steve-aom-elliott in #549
- UnnecessaryThrows should not change API for protected methods by @timtebeek in #553
- NoFinalizedLocalVariables - fix for J.Lambda.Parameters in LST by @steve-aom-elliott in #555
- Run test methods in parallel but classes sequential by @timtebeek in #539
- Enhance RemoveUnusedLocalVariables to support filtering by type by @bgalek in #563
- No MethodReference for parentheses by @timtebeek in #565
- Moved junit-platform.properties to test to prevent configuration inheritance by @arodionov in #567
MinimumSwitchCases
ignores switches with cases with more than 1 break. by @JohannisK in #568- Fallthrough should not add
break;
when statements contain a guaranteed return by @JohannisK in #566 - AnnotateNullableMethods to support ternary null returns by @stefanodallapalma in #569
- Remove default style choice from
CustomImportOrder
by @Laurens-W in #573
New Contributors
- @steve-aom-elliott made their first contribution in #546
- @bgalek made their first contribution in #563
- @stefanodallapalma made their first contribution in #569
Full Changelog: v2.9.0...v2.10.0
2.9.0
What's Changed
- Exclude visiting Javadoc in ReplaceDeprecatedRuntimeExecMethods by @greg-at-moderne in #527
- Reduce compiler warnings when running tests by @timtebeek in #525
- refactor: OpenRewrite Recipe best practices by @timtebeek in #529
- fix: use box for primitives when rewriting
instanceof
(#528) by @cortlepp in #530 - Fix type substitution for
var
variable by @arodionov in #533 - Add cloneInInterface test case to MissingOverrideAnnotationTest by @greg-at-moderne in #536
- Fix clashing variable names generated by
InstanceOfPatternMatch
by @arodionov in #538 - Enable custom Serial Version UID by @yuri1969 in #541
- Fix Comment handling in NeedsBraces by @Jammy-Louie in #518
- CustomImportOrder recipe by @mankoffs in #542
New Contributors
Full Changelog: v2.8.0...v2.9.0
2.8.0
What's Changed
- Exclude
dataflow-errorprone
over shaded vulnerable Guava by @timtebeek in #503 - Ignoring combineSameSemanticallyEquivalentMethodTypes test case by @greg-at-moderne in #507
- ReplaceStringBuilderWithString should keep newlines by @Jammy-Louie in #504
- Avoid double negation in SimplifyBooleanReturn by @timtebeek in #505
- Removing trailing spaces in code by @greg-at-moderne in #510
- ReplaceStringBuilderWithString should keep comments by @Jammy-Louie in #511
- Don't finalize try-with-resources vairables as they are implicitly final by @JohannisK in #515
- Fix RemoveUnusedPrivateMethods
org.opentest4j.AssertionFailedError
by @Pankraz76 in #468 - CompareEnumsWithEqualityOperator should not invert equality by @JohannisK in #516
- UseCollectionInterfaces updates methodInvovations type info to enable import removal by @JohannisK in #517
- Handling parentheses sometimes needed around instanceof by @greg-at-moderne in #521
- DefaultComesLast should correctly support fall through cases by @JohannisK in #520
- Enhance ExplicitInitialization to handle anonymous classes by @Jammy-Louie in #522
- Fixes for DefaultComesLast by @JohannisK in #523
New Contributors
- @Jammy-Louie made their first contribution in #504
Full Changelog: v2.7.1...v2.8.0
2.7.1
What's Changed
- OpenRewrite v8.50.2: https://github.com/openrewrite/rewrite
Full Changelog: v2.7.0...v2.7.1
2.7.0
What's Changed
- Increased idempotency of EqualsAvoidsNull by avoiding too many swaps by @greg-at-moderne in #496
- Update MSAL by @MBoegers in #499
- Use
maybeParenthesize()
utility inNoValueOfOnStringType
by @knutwannheden in #500
Full Changelog: v2.6.0...v2.7.0
2.6.0
What's Changed
- Fix missing constructor argument issue by @arodionov in #492
- Added option to provide a custom FQN to AnnotateNullableMethods recipe by @JohannisK in #491
- Added spaces by @JohannisK in #494
- Fix several issues in InstanceOfPatternMatch by @cortlepp in #489
New Contributors
- @arodionov made their first contribution in #492
- @JohannisK made their first contribution in #491
- @cortlepp made their first contribution in #489
Full Changelog: v2.5.0...v2.6.0
2.5.1
What's Changed
- OpenRewrite v8.49.0: https://github.com/openrewrite/rewrite
Full Changelog: https://github.com/openrewrite/rewrite-static-analysis
2.5.0
What's Changed
- Fixed primitive wrapper for double to float conversion by @ddsharpe in #477
- Fixing
EmptyBlock
recipe not to alter code for unsupported operators by @greg-at-moderne in #478 - Don't swap if select is a literal in EqualsAvoidsNull by @greg-at-moderne in #485
- Code suggestions - java source code indented by @greg-at-moderne in #486
- Add project idea-icon by @pankratz76 in #467
New Contributors
Full Changelog: v2.4.0...v2.5.0
2.4.0
What's Changed
- Fixing imports by @greg-at-moderne in #475
- Adding test case to
RemoveExtraSemicolons
for enum with no values by @greg-at-moderne in #474
New Contributors
- @greg-at-moderne made their first contribution in #475
Full Changelog: v2.3.0...v2.4.0