From 12689e71eaa76982b04b6fb9ee68bc774c31516b Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 16 Oct 2024 09:51:43 +0000 Subject: [PATCH] refactor: OpenRewrite best practices Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.OpenRewriteBestPractices?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .../staticanalysis/ChainStringBuilderAppendCalls.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/openrewrite/staticanalysis/ChainStringBuilderAppendCalls.java b/src/main/java/org/openrewrite/staticanalysis/ChainStringBuilderAppendCalls.java index 557ea7bc1..911d39ffd 100644 --- a/src/main/java/org/openrewrite/staticanalysis/ChainStringBuilderAppendCalls.java +++ b/src/main/java/org/openrewrite/staticanalysis/ChainStringBuilderAppendCalls.java @@ -32,6 +32,7 @@ public class ChainStringBuilderAppendCalls extends Recipe { private static final MethodMatcher STRING_BUILDER_APPEND = new MethodMatcher("java.lang.StringBuilder append(String)"); + @SuppressWarnings("ALL") // Stop NoMutableStaticFieldsInRecipes from suggesting to remove this mutable static field private static J.Binary additiveBinaryTemplate = null;