From 0bd6cf9d75c6a2e673692ecb669a8aa29b2160b6 Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz" Date: Thu, 19 Dec 2024 14:15:49 +0100 Subject: [PATCH] Fix imports --- .../java/logging/ConvertConfiguration.java | 16 +++++----------- .../java/logging/ConvertConfigurationTest.java | 4 ++-- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/main/java/org/openrewrite/java/logging/ConvertConfiguration.java b/src/main/java/org/openrewrite/java/logging/ConvertConfiguration.java index 8f33a94..d33dcf5 100644 --- a/src/main/java/org/openrewrite/java/logging/ConvertConfiguration.java +++ b/src/main/java/org/openrewrite/java/logging/ConvertConfiguration.java @@ -15,24 +15,18 @@ */ package org.openrewrite.java.logging; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.nio.charset.StandardCharsets; import lombok.AllArgsConstructor; import org.apache.logging.converter.config.ConfigurationConverter; import org.jspecify.annotations.Nullable; -import org.openrewrite.ExecutionContext; -import org.openrewrite.FindSourceFiles; +import org.openrewrite.*; import org.openrewrite.NlsRewrite.Description; import org.openrewrite.NlsRewrite.DisplayName; -import org.openrewrite.Option; -import org.openrewrite.Preconditions; -import org.openrewrite.Recipe; -import org.openrewrite.SourceFile; -import org.openrewrite.Tree; -import org.openrewrite.TreeVisitor; import org.openrewrite.text.PlainText; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.nio.charset.StandardCharsets; + /** * Converts a logging configuration file from one format to another. */ diff --git a/src/test/java/org/openrewrite/java/logging/ConvertConfigurationTest.java b/src/test/java/org/openrewrite/java/logging/ConvertConfigurationTest.java index bfce8b1..5e55cc9 100644 --- a/src/test/java/org/openrewrite/java/logging/ConvertConfigurationTest.java +++ b/src/test/java/org/openrewrite/java/logging/ConvertConfigurationTest.java @@ -15,12 +15,12 @@ */ package org.openrewrite.java.logging; -import static org.openrewrite.test.SourceSpecs.text; - import org.junit.jupiter.api.Test; import org.openrewrite.DocumentExample; import org.openrewrite.test.RewriteTest; +import static org.openrewrite.test.SourceSpecs.text; + class ConvertConfigurationTest implements RewriteTest { @DocumentExample