github openrewrite/rewrite v7.10.0
7.10.0

latest releases: v8.61.3, v8.61.2, v8.61.1...
4 years ago

Enhancements:

  • Add optional relativePath parameter for RecipeTest methods that take file inputs. #849
  • New recipe: diagnostic to identify missing type attribution FindMissingTypes #846
  • New recipe: FindSourceFiles #844
  • RemoveUnused* recipes now support @SuppressWarnings("unused") annotation #841
  • New recipe: for nested blocks of code should not be left empty #838
  • New recipe: which removes unused private methods #836
  • New recipe: NoStaticImport #835
  • Auto-detect import ordering for java and javax import on the project. #833
  • New recipe: checkstyle policies EmptyForInitializerPad, EmptyForIteratorPad #832
  • New recipe: "catch" clauses should do more than rethrow #825
  • New recipe: unused local variables should be removed #822
  • New recipe: equality operators should not be used in for loop termination conditions #811
  • New recipe: for loop increment clauses should modify the loops' counters #808
  • New recipe: Remove extra semicolons #807
  • New recipe: Boolean checks should not be inverted #805
  • New recipe: Files should contain an empty newline at the end #803
  • New recipe: A while loop should be used instead of a for loop #802
  • New recipe: switch statements should have at least 3 case clauses #800
  • New recipe: "indexOf" checks should not compare greater than zero #799
  • New recipe: UnnecessaryParentheses should unwrap double-nested parentheses on expressions #798
  • Add newline character detection to Autodetect. #789

Fixes:

  • Recipes with optional configuration, like OrderImports, cannot be activated directly #854
  • Checkstyle modules should be identified by ID property if it exists #847
  • Correctly parsing multiple for loop inits #843
  • Adding enough imports to culminate in star import causes duplicate import #839
  • Prefixes on var keyword not preserved #830
  • MavenProjectParser sorting not always correct #829
  • Maven: not resolving test dependencies of parent dependencies section #813
  • ImportLayoutStyle#orderImports replaces CRLF with LF #787
  • Indent is not detected in TabsAndIndentsVisitor if the method starts with an in-line comment #708
  • Maven: transitive dependencies should be considered by AddDependency #646
  • Fix Illegal reflective access warning #842

Don't miss a new rewrite release

NewReleases is sending notifications on new releases.