Releases: openrewrite/rewrite-static-analysis
Releases · openrewrite/rewrite-static-analysis
2.1.0
What's Changed
- recipe: On abstract classes make constructors protected by @kthoms in #450
- feat: prevent UnnecessaryCatch from removing
catch (Throwable t)
by @auke- in #451
New Contributors
Full Changelog: v2.0.2...v2.1.0
2.0.2
What's Changed
- Don't remove necessary whitespace in EqualsAvoidNull by @Bananeweizen in #439
- Restore double negation test in
SimplifyBooleanExpressionTest
by @Bananeweizen in #440 - Skip constructors in
UnnecessaryThrows
for now by @sebastianhaeni in #444 - Create a LICENSE folder by @timtebeek in #447
New Contributors
- @sebastianhaeni made their first contribution in #444
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
- Guard against missing
Cs
class now that dependency is provided by @timtebeek in #438 ReplaceDuplicateStringLiterals
throws NPE from 1.19.0+ #384 by @adambir in #385- Methods are not ambiguous if their argument size differs by @timtebeek fixes #427
- ReplaceOptionalIsPresentWithIfPresent should not convert when exception could be thrownby @timtebeek fixes #435
New Contributors
Full Changelog: v2.0.0...v2.0.1
2.0.0
What's Changed
NullableOnMethodReturnType
should not change identity on package private methods by @kmccarp in #404- Verify
EqualsAvoidsNullVisitor
works well for chained method calls by @punkratz312 in #412 - refactor: Enum values should be compared with "==" by @timtebeek in #414
UseLambdaForFunctionalInterface
recipe should not convert when code uses a static field from enum constructor by @jevanlingen in #415- Lambda by @punkratz312 in #419
- Collapse constitutionals in SimplifyBooleanExpression by @punkratz312 in #421
- Use
provided
configuration for optional language dependencies by @jevanlingen in #411
New Contributors
Full Changelog: v1.22.0...v2.0.0
1.22.0
What's Changed
EqualsAvoidsNull
should flip arguments for constants by @punkratz312 in #398- Prove C# support for ExplicitInitialization recipe by @jevanlingen in #401
- Move
verifyCsharpImplicitThrow
to own Csharp test class by @jevanlingen in #402 - Adjust
MethodNameCasing
to work with C# by @Laurens-W in #397 - Disable
MinimumSwitchCases
for C# by @Laurens-W in #405 - Remove RemoveMethodCallVisitor by @jevanlingen in #406
- Add URLEqualHashCode Recipe by @JLLeitschuh in #251
- Apply the MSAL license by @jkschneider in #408
- Apply MSAL license when generating POMs by @jkschneider in #409
Full Changelog: v1.21.1...v1.22.0
1.21.1
What's Changed
- OpenRewrite v8.41.1: https://github.com/openrewrite/rewrite
Full Changelog: v1.21.0...v1.21.1
1.21.0
What's Changed
- Fix IndexOutOfBoundsException in EqualsAvoidsNull recipe by @ggerbaud in #394
- Unnecessary
return
as last statement invoid
method by @mccartney in #388
New Contributors
- @ggerbaud made their first contribution in #394
- @mccartney made their first contribution in #388
Full Changelog: v1.20.0...v1.21.0
1.20.0
What's Changed
- Updating MoveFieldAnnotationToType to handle moving annotation which are fully defined by @lkerford in #379
- Add
AnnotateNullableMethods
recipe by @nielsdebruin in #364 - Add
BufferedWriterCreation
recipe by @JLLeitschuh in #258 - refactor: add @nullable to methods who may return null by @nielsdebruin in #383
- Add recipe
ReplaceClassIsInstanceWithInstanceof
for SonarQube RSPEC-6202 by @yurii-yu in #381
New Contributors
Full Changelog: v1.19.0...v1.20.0
1.19.0
What's Changed
- Cap the lengths of generate names in the ReplaceDuplicateStringLiterals recipe by @lkerford in #374
- address: LiteralsFirstInComparisons PMD rule by @punkratz312 in #368
- Fix
CatchCauseOnlyRethrows
onlyRethrows check for multi catch statements by @nielsdebruin in #355 - Setting the maximum generated variable length to 40 by @lkerford in #375
- Updating ReplaceDuplicateStringLiterals recipe to use VariableNameUtils to track variable names by @lkerford in #377
- Allow removal of unused local variables with side effects in initializer by @timtebeek in #378
New Contributors
- @lkerford made their first contribution in #374
- @punkratz312 made their first contribution in #368
Full Changelog: v1.18.0...v1.19.0
1.18.0
What's Changed
- InstanceOf: no action if type casts with specific type params used by @BoykoAlex in #338
- update to latest error prone to remove [email protected] vulnerability by @natedanner in #346
- Fix:
CatchClauseOnlyRethrows
does not handle multi catch correctly by @nielsdebruin in #348
New Contributors
- @natedanner made their first contribution in #346
- @nielsdebruin made their first contribution in #348
Full Changelog: v1.17.0...v1.18.0