From 88183fbd237bce56abc44a97def111ad9faf703a Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 21 Oct 2024 15:10:21 +0200 Subject: [PATCH] Use static imports for any OpenRewrite Assertions methods --- src/main/resources/META-INF/rewrite/openrewrite.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/META-INF/rewrite/openrewrite.yml b/src/main/resources/META-INF/rewrite/openrewrite.yml index 98b5b0e..76d13db 100644 --- a/src/main/resources/META-INF/rewrite/openrewrite.yml +++ b/src/main/resources/META-INF/rewrite/openrewrite.yml @@ -70,6 +70,8 @@ recipeList: - org.openrewrite.java.testing.cleanup.TestsShouldNotBePublic - org.openrewrite.staticanalysis.NeedBraces - org.openrewrite.staticanalysis.RemoveSystemOutPrintln + - org.openrewrite.java.UseStaticImport: + methodPattern: 'org.openrewrite..Assertions *(..)' --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.recipes.RecipeNullabilityBestPractices