github openrewrite/rewrite v7.30.0
7.30.0

latest releases: v8.62.4, v8.62.3, v8.62.2...
3 years ago

Enhancements

  • Move to new org.apache.commons libs (#2190) by @thomaszub #2191
  • Request Result Exception #2211
  • Support type parameters in ImplementInterface visitor by @thomaszub #2194
  • New Recipe: Remove unnecessary catch blocks #2236
  • Multiple enhancements/fixes with the handling of HCL Object Values by @rmadamanchi #2195
  • Failure to download metadata during UpgradeDependencyVersion should embed the exception and continue processing the pom file. #2207 aa33f2c
  • Add support for merging Sequence of Mappings by @dmbelyaev #2240 #2157
  • Add parse overloads with Charset #2230 #2249
  • Record root cause when maven metadata cannot be retrieved from repositories. f14b789
  • Record parse failures into the execution context as Quarks with a Marker d296838
  • Add fromResource overload which defaults to UTF-8 1d2b5be

Fixes

  • Fix FindDeprecatedUses and FindDeprecatedClasses having the same display name 3fe3834
  • Fix NullPointerException when using FindDeprecatedUses #2196
  • Remove instanceof check so visitor adaptation works for XML, JSON, and proto 2c81466
  • Add mechanism to test for false positives/negatives to HCL JsonPathMatcherTest 3295095
  • FindDeprecatedMethods matches on too many deprecated methods when any one method matches 090cce9
  • Enable UnaryExpression to match a Block by name in HCL JsonPathMatcher. fixes #2197
  • Fix wildcard matches on List and Block in HCL JsonPathMatcher. fixes #2198
  • Fix NPE in JavaType$Method#equals by @JLLeitschuh #2193
  • JavaTemplate should support replacing variables and iterators within J.ForEachLoop.Control #2200
  • Refinements to UpgradeDependencyVersion #2201
  • Surface exceptions in recipes that occur in applicable tests, visit(List, ExecutionContext) fixes #2202
  • IsEmptyCallOnCollections NPE on class implementing Collection. Fixes #2203
  • FindFieldsWithType is finding a local variable. fixes #2199
  • Error writing Maven-POM with special characters. fixes #2189
  • org.openrewrite.maven.AddProperty: Take parent into account and add an optional flag for overriding. fixes #2188
  • Limit stack depth of Validated#failures. fixes #2089
  • No use of regex in Java parser, other allocation improvements. Issue #2183
  • lineNumber uses Java 9+ api 7863c84
  • Don't attempt to parse blank method matcher on RecipeExceptionDemonstration 095e78b
  • Update BlockStatementTemplateGenerator to add a semicolon when the following statement is not a method invocation while visiting instances of J.NewClass #2185
  • Update BlockStatementTemplateGeneratorAdd with support for templating while-loop condition expressions #2213
  • Let the BlockStatementTemplateGenerator manage statement semicolons and add a catch for trimming trees having invalid type information and a STOP_COMMENT. #2216
  • Fixes to UseStringReplace #2222 1381bdd dce6d0c 35448fd
  • UseStringReplace removed from common-static-analysis
  • ReplaceLambdaWithMethodReference removed from common-static-analysis
  • RenameLocalVariablesToCamelCase removed from common-static-analysis
  • Don't allow Lombok to leak into rewrite pom as a runtime dependency 1b1a6a2
  • Remove multiple imports of the same type or method (#2231) by @thomaszub #2232
  • Fix an issue with HCL attribute name casting to Identifier #2238
  • AddImport adds static import to a new block when a static block already exists #2155
  • RenameLocalVariablesToCamelCase does not consider NamedVariable name conflict #2227
  • Derive Maven metadata #2243
  • Keep inner class imports by @thomaszub #2248 #2231
  • Don't treat leading underscore as snake case by @edward3h #2239
  • Fix NPE when Metadata.Versioning.versions is null after deserialization.
  • Clean up metadata caching logic and error handling. 947b436

New Contributors

Full Changelog: v7.29.0...v7.30.0

Don't miss a new rewrite release

NewReleases is sending notifications on new releases.