From e47737d9bb67791e6aa0fdeac797224f2e1d50ec Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Fri, 5 Jan 2024 09:49:02 +0000 Subject: [PATCH] refactor: Minimal indentation for `SourceSpecs` text blocks Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.SourceSpecTextBlockIndentation?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .../java/logging/log4j/Slf4jToLog4jTest.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/test/java/org/openrewrite/java/logging/log4j/Slf4jToLog4jTest.java b/src/test/java/org/openrewrite/java/logging/log4j/Slf4jToLog4jTest.java index 90f933f..1845b54 100644 --- a/src/test/java/org/openrewrite/java/logging/log4j/Slf4jToLog4jTest.java +++ b/src/test/java/org/openrewrite/java/logging/log4j/Slf4jToLog4jTest.java @@ -221,24 +221,24 @@ void changeLombokLogAnnotation() { //language=java java( """ - import lombok.extern.slf4j.Slf4j; + import lombok.extern.slf4j.Slf4j; - @Slf4j - class Test { - void method() { - log.info("uh oh"); - } - } + @Slf4j + class Test { + void method() { + log.info("uh oh"); + } + } """, """ - import lombok.extern.log4j.Log4j2; + import lombok.extern.log4j.Log4j2; - @Log4j2 - class Test { - void method() { - log.info("uh oh"); - } - } + @Log4j2 + class Test { + void method() { + log.info("uh oh"); + } + } """ ) );