Releases: openrewrite/rewrite-static-analysis
Releases · openrewrite/rewrite-static-analysis
v1.1.0
What's Changed
- Allow
RemoveRedundantTypeCast
to deal with generics by @knutwannheden in #209 - No method reference on new class select by @timtebeek in #212
- Cast when needed on lambda expressions by @joanvr in #207
Full Changelog: v1.0.9...v1.1.0
v1.0.9
What's Changed
- Transform collection.size() < 1 to isEmpty() by @Bananeweizen in #184
- Fix
default
modifier type position to comply with Java Language Specification by @joteri in #188 - rename when same id but in different scopes by @joanvr in #196
- remove comments from same line by @joanvr in #195
- RemoveEmptyJavaDocParameters: added tests + fixed bugs by @joanvr in #198
- no diamond when argument to generic method by @joanvr in #197
- rename final variables too by @joanvr in #199
- Use method references in lambdas by @knutwannheden in #202
- Manually create LST for enums in
MinimumSwitchCases
by @knutwannheden in #204 - Simplify
if
s with literal conditions even if they jump by @tkindy in #193 - Refactor: Simplify RemoveUnreachableCodeVisitor by @pstreef in #206
- RenameLocalVariablesToCamelCase: Do not rename method argument names. by @pstreef in #205
FallThrough
must only addbreak
on normal termination by @knutwannheden in #208
New Contributors
Full Changelog: v1.0.8...v1.0.9
v1.0.8
What's Changed
- Unnecessary explicit type arguments removes necessary type arguments by @pstreef in #165
- Do not simplify boolean return with comments by @timtebeek in #169
- Preserve arrays when inlining variables by @timtebeek in #170
- Don't redeclare EnumSet as Set by @Bananeweizen in #183
- fix: FinalizeMethodArguments considers unary and += expressions by @AlejandroBertolo in #180
- fix: skip finalizing anonymous class fields in FinalizeLocalVariables by @AlejandroBertolo in #182
New Contributors
- @Bananeweizen made their first contribution in #183
- @AlejandroBertolo made their first contribution in #180
Full Changelog: v1.0.7...v1.0.8
1.0.7
v1.0.6
What's Changed
- Update with rewrite 8.4.0
- RemoveUnusedLocalVariables fails inside case blocks (test) by @sfc-gh-dtran in #153
- MinimumSwitchCases should add Enum import when necessary by @timtebeek in #146
- Extend SimplifyBooleanExpressionVisitor by @timtebeek in #155
- Detect Kotlin IsNullSafe marker on method invocation by @timtebeek in #156
- Ternary operator should not be nested by @pstreef in #93
- Clean up some recipe descriptions by @mike-solomon in #160
- do not remove try block if there are resources by @joanvr in #161
- Simplify lambda blocks to expressions replaces return that is used to infer which overloaded method to pick by @pstreef in #163
New Contributors
- @sfc-gh-dtran made their first contribution in #153
- @mike-solomon made their first contribution in #160
- @joanvr made their first contribution in #161
Full Changelog: v1.0.5...v1.0.6
1.0.5
What's Changed
- Do not use String
equals
for Groovy either by @timtebeek in #142 ReplaceLambdaWithMethodReference
should not replace ambiguous references by @srmalkan in #148- Do not remove unused variables with constructor calls by @timtebeek in #147
Full Changelog: v1.0.4...v1.0.5
1.0.4
What's Changed
- Replace week year (YYYY) with year (yyyy) in date formats by @AlekSimpson in #129
- Add DataFlowSpec to ReplaceStackWithDeque by @aaronist in #135
- Tune/adjust static analysis recipes to work properly on Kotlin file. by @kunli2 in #136
- Bug Fix for #121 by @AlekSimpson in #137
- refactor: Migrate rewrite from 7 to 8 by @timtebeek in #141
- Explicitly sorted streams should be collected to a LinkedHashSet to preserve order by @RossZhang-cpu in #139
New Contributors
- @RossZhang-cpu made their first contribution in #139
Full Changelog: v1.0.3...v1.0.4
1.0.3
What's Changed
- Better type attribution for
ReplaceLambdaWithMethodReference
by @knutwannheden in #131 - Incorporate DataFlowNodes from rewrite-analysis by @aaronist in #133
ReplaceLambdaWithMethodReference
should not replace lambda supplier of method reference with method reference by @rickie in #132
New Contributors
Full Changelog: v1.0.2...v1.0.3
1.0.2
What's Changed
- new recipe that changes .equals() to .contentEquals() when comparing … by @AlekSimpson in #124
- Remove hashCode calls on arrays by @AlekSimpson in #128
- Remove to string calls from array instances by @AlekSimpson in #126
New Contributors
- @AlekSimpson made their first contribution in #124
Full Changelog: v1.0.1...v1.0.2
1.0.1
What's Changed
- OpenRewrite 8.1.2