github openrewrite/rewrite v7.36.0

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

What's Changed

  • Upgrade literal dependency version + add GradleProject marker in unit tests by @jkschneider in #2684
  • Fix an uncovered lambda case of FinalizePrivateField recipe by @kunli2 in #2686
  • Fix an uncovered case of FinalizePrivateFields with Lombok setter annotation by @kunli2 in #2688
  • Maven/RemoveExclusion - added onlyIneffective option (and added glob support) by @nmck257 in #2683
  • Adds filtering null fieldType to finalizePrivateRecipe to fix error by @kunli2 in #2694
  • Enhance RemoteArchive and remove GradleWrapperJar by @jkschneider in #2696
  • replace redundant println(format()) with printf() by @garyolsen in #2695
  • Add remove plugin support by @shanman190 in #2701
  • Simplify java.time.Duration creation units to be more readable by @garyolsen in #2703
  • fix: use FileAttributes to drive FileMode on diffs by @sjungling in #2700
  • Enhance NoDoubleBraceInitialization recipe to be able to prompt possible code errors, or do not change if there are no initializer contents added to the collection. by @kunli2 in #2699
  • Fix incorrect JavaDoc in FinalizeLocalVariables by @mike-solomon in #2730
  • Remove unused import by @mike-solomon in #2731
  • Default MethodNameCasing#renamePublicMethods to false by @knutwannheden in #2721
  • Fix bug in TabsAndIndentsVisitor by @knutwannheden in #2733
  • Fix a bug of recipe NoDoubleBraceInitialization when there is any method declared in the anonymous subclass and be invoked. by @kunli2 in #2740
  • Regenerate all ANTLR parsers using version 4.11.1 by @knutwannheden in #2739
  • FinalizePrivateFields also needs to update the JavaType by @knutwannheden in #2716
  • Fix the issue of applicable tests doesn't work as expected. by @kunli2 in #2727
  • Add RemoveCallsToObjectFinalize by @yeikel in #2704
  • New InstanceOfPatternMatch recipe by @knutwannheden in #2690
  • Handle instance methods and constructor calls in ReplaceLambdaWithMethodReference by @knutwannheden in #2718
  • Fix InvocationMatcher incorrect name for method by @JLLeitschuh in #2761
  • Print stacktrace on IllegalArgumentException in JGit by @timtebeek in #2760
  • Adds tests to reproduce applicability test issue by @kunli2 in #2753
  • Fix validation failure of GradleWrapper caused by case-sensitive distribution type string by @kunli2 in #2751
  • Make J.ParameterizedType#getType() return a JavaType.Parameterized by @knutwannheden in #2750
  • Fix J.Unary side effects and SemanticallyEqual by @knutwannheden in #2747
  • Fix handling of generics in InstanceOfPatternMatch by @knutwannheden in #2762
  • #412 Added Operating System Marker to Rewrite by @reka18 in #2766
  • Use GroovyClassLoader in SourceUnit and CompilationUnit of GroovyParser. by @traceyyoshima in #2774
  • Add JavaType.FullyQualified.Kind.RECORD by @knutwannheden in #2782
  • Fix type errors in a few before sources of tests by @knutwannheden in #2781
  • Enhance the Space recipe to support transformation for multiple whitespaces by @kunli2 in #2741
  • Extend remove repository to remove plugin repositories by @yeikel in #2736
  • #412 Implemented Marker in OperatingSystem by @reka18 in #2794
  • fix marker inheritance by @reka18 in #2795
  • replace UUID with Tree randomId by @reka18 in #2797
  • Fix the replacement coordinates for unary expressions by @knutwannheden in #2784
  • Fix a defect of RewriteTest.rewriteRun() that cannot detect unexpected newly generated files by @kunli2 in #2780
  • Fix issue that private fields that might have been not initialized can not be final by @kunli2 in #2808
  • No sys out print statements by @BoykoAlex in #2804
  • No sys out print statements (Cont.) by @BoykoAlex in #2812
  • docs: typo by @yeikel in #2811
  • Added recipe to replace Apache validate.notNull with objects.requireN… by @srmalkan in #2803
  • Use Object.notifyAll() instead of Object.notify() by @yeikel in #2779
  • Also validate constructor calls in RewriteTest sources by @knutwannheden in #2816
  • Fix IsEmptyCallOnCollections in for loop control by @knutwannheden in #2815
  • Slight performance improvements to Source Positions recipe by @BoykoAlex in #2821
  • UnnecessaryExplicitTypeArguments: Don't apply to var variables by @knutwannheden in #2827
  • Issue #412 - Changed OperatingSystem to OsProvenance by @reka18 in #2829
  • Improve the equality check in ListUtils#flatMap() by @knutwannheden in #2771
  • Add missing field type to instanceof pattern variables by @knutwannheden in #2831
  • feat: fetch latest gradle release if no version is given by @yeikel in #2659
  • Consistently use OpenRewrite nullness annotations by @knutwannheden in #2835
  • fix: AddImport should allow static imports from java.lang by @yeikel in #2833
  • Recipe/remove instanceof pattern by @AresEkb in #2828
  • Add first simple ArchUnit tests by @knutwannheden in #2836
  • MethodParamPad no longer formats entire method body by @knutwannheden in #2798
  • First draft of JSON schema for OpenRewrite resources by @knutwannheden in #2825
  • Fix Control Flow Graph Generation for iterable for each by @JLLeitschuh in #2843
  • Fixes issue of Yaml recipes in the list should not be run if single source applicability tests failed [2nd approach] by @kunli2 in #2814
  • Add recipe to replace text blocks with strings by @AresEkb in #2841
  • Java parser partial reset by @BoykoAlex in #2789
  • Allow Recipes to influence later Recipe Applicability by @JLLeitschuh in #2802
  • Replace System.getProperty("line.separator") with System.lineSeparator() by @yeikel in #2778
  • Fix failing applicability tests by adding visitSourceFile() call as well by @kunli2 in #2848

New Contributors

Full Changelog: v7.35.0...v7.36.0

Don't miss a new rewrite release

NewReleases is sending notifications on new releases.