From 4c7c842adaba802c83d03bc3fda74f5891eb5569 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Sun, 18 Aug 2024 08:52:55 +0000 Subject: [PATCH] refactor: Remove unused imports Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.RemoveUnusedImports?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .../openrewrite/staticanalysis/ControlFlowIndentation.java | 5 ++++- .../staticanalysis/UnnecessaryExplicitTypeArguments.java | 1 - .../AddSerialAnnotationToserialVersionUIDTest.java | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/openrewrite/staticanalysis/ControlFlowIndentation.java b/src/main/java/org/openrewrite/staticanalysis/ControlFlowIndentation.java index 1dfa7271e..c9d09fd45 100755 --- a/src/main/java/org/openrewrite/staticanalysis/ControlFlowIndentation.java +++ b/src/main/java/org/openrewrite/staticanalysis/ControlFlowIndentation.java @@ -16,7 +16,10 @@ package org.openrewrite.staticanalysis; import org.jspecify.annotations.Nullable; -import org.openrewrite.*; +import org.openrewrite.ExecutionContext; +import org.openrewrite.Recipe; +import org.openrewrite.Tree; +import org.openrewrite.TreeVisitor; import org.openrewrite.internal.ListUtils; import org.openrewrite.java.JavaIsoVisitor; import org.openrewrite.java.format.TabsAndIndentsVisitor; diff --git a/src/main/java/org/openrewrite/staticanalysis/UnnecessaryExplicitTypeArguments.java b/src/main/java/org/openrewrite/staticanalysis/UnnecessaryExplicitTypeArguments.java index f728f2fde..90affc4ac 100644 --- a/src/main/java/org/openrewrite/staticanalysis/UnnecessaryExplicitTypeArguments.java +++ b/src/main/java/org/openrewrite/staticanalysis/UnnecessaryExplicitTypeArguments.java @@ -19,7 +19,6 @@ import org.openrewrite.java.JavaIsoVisitor; import org.openrewrite.java.tree.*; import org.openrewrite.staticanalysis.java.JavaFileChecker; -import org.openrewrite.staticanalysis.kotlin.KotlinFileChecker; public class UnnecessaryExplicitTypeArguments extends Recipe { diff --git a/src/test/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUIDTest.java b/src/test/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUIDTest.java index 5b18adc2d..46a5e48be 100644 --- a/src/test/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUIDTest.java +++ b/src/test/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUIDTest.java @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Test; import org.openrewrite.DocumentExample; -import org.openrewrite.java.JavaParser; import org.openrewrite.test.RecipeSpec; import org.openrewrite.test.RewriteTest;