github openrewrite/rewrite v7.22.0
7.22.0

latest releases: v8.47.1, v8.47.0, v8.46.1...
2 years ago

Enhancements

  • Unify logic to ChangeStringLiteral by @JLLeitschuh in #1577
  • Updated JsonPathMatchers to cache the scope before evaluating a binaryExpression by @traceyyoshima in #1591
  • Added support for contains to JsonPathMatcher. by @traceyyoshima in #1600
  • Updated JsonPathMatcher with unary @ to match json literals. by @traceyyoshima in #1612
  • Restructure build logic by @shanman190 in #1592
  • RenameVariable recipe now renames fieldAccess when variable is renamed @Guliver in #1603
  • Introduce RenamePrivateFieldsToCamelCase recipe by @Guliver in #1605
  • Updated WatchableExecutionContext to account for ExecutionContext.CURRENT_RECIPE by @traceyyoshima in #1618
  • Added RenameExceptionInEmptyCatch recipe. by @traceyyoshima in #1625
  • Align plugin configuration with updates needed for rewrite-recipe-bom by @shanman190 in #1629
  • Add method for generating a formatted list of recipe names and associ… by @pway99 in #1633
  • FindMissingTypes validates ClassDeclaration, MethodDeclaration, MethodInvocation and Identity by @pway99 in #1690
  • SourceFiles now contain our best estimate at their character encoding by @traceyyoshima in #1697 #1702 #1707
  • Added recipe ReplaceLambdaWithMethodReference. by @traceyyoshima in #1710
  • Update java CommonStaticAnalysis cleanup recipe with last recipes added with an RSPEC tag by @murdos in #1713
  • Add 'Simplify Compound Statement' Recipe and 'SimplifyCompoundStatementVisitor' by @JLLeitschuh in #1709 #1708
  • Rewrite modules no longer declare any dependency on kotlin or jackson-module-kotlin by @sambsnyd in 9033922
  • Update version of Gradle used by rewrite to 7.4.2 by @jkschneider in b0c1aca
  • Enhance type information available within Groovy closures by @sambsnyd in be4d31e
  • Introduce recipe to remediate RSPEC-4551: Enum values should be compared with "==" by @traceyyoshima in #1586

Fixes

  • Fix RemoveUnusedLocalVariables when Initalizer Side Effects by @JLLeitschuh in #1581
  • Fix parent/module resolution in MavenParser by @gsmet in #1585
  • Temporarily pinning ANTLR to 4.9.3 by @traceyyoshima in #1620
  • Fix renaming private fields when method with similar name exists by @Guliver in #1614
  • Do not remove unrelated empty entries in yaml/DeleteKey. by @traceyyoshima in #1623
  • Default ImportLayoutStyle#layout to IntelliJ settings if layout is empty by @traceyyoshima in #1691
  • Fix IOB in JavaSourceSet from shaded jars. by @traceyyoshima in #1689
  • updating owasp and nebula dependency versions by @pway99 in #1699
  • Fix RemoveUnneededBlock formatting more than is strictly required by @JLLeitschuh in #1720
  • Use String::replaceAll only when fist parameter is regular expression by @anelfdzml in #1711
  • Fix JavaSourceSet missing some JRE provided types, including java.lang.Object by @sambsnyd in #1712
  • Fix GroovyParser confusing Type Parameters and Parameterized Types by @sambsnyd in 4a28548
  • Add missing type information to Groovy class declarations and fields by @sambsnyd in fe71d86
  • Add missing type information to Groovy annotations and other identifiers by @sambsnyd in 82bf226
  • Fix GroovyTypeMapping not recording class methods and fields correctly by @sambsnyd in 5f06d08
  • Add missing type information to Groovy method declarations by @sambsnyd in 0cfec06
  • RemoveExtraSemicolons now removes the final semicolon from enums by @jkschneider in #1587
  • Fix MavenRepository URL property substition bug by @tkvangorder in #1543
  • Fix Property place holders are not resolved in the Version of the cycloneDX bom by @tkvangorder in #1624
  • Fix MissingOverrideAnnotation annotates constructors by @jkschneider in #1634

Thank You to Contributors

Full Changelog: v7.21.3...v7.22.0

Don't miss a new rewrite release

NewReleases is sending notifications on new releases.