From ba1789dd8ea8ffda67824b61344bd7b92e408217 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Sun, 18 Aug 2024 08:52:43 +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 --- .../org/openrewrite/javascript/TypeScriptTypeMapping.java | 5 ++++- .../org/openrewrite/javascript/internal/tsc/TSCGlobals.java | 1 - src/test/java/org/openrewrite/javascript/tree/ArrayTest.java | 1 - .../org/openrewrite/javascript/tree/TypeOperatorTest.java | 2 -- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/openrewrite/javascript/TypeScriptTypeMapping.java b/src/main/java/org/openrewrite/javascript/TypeScriptTypeMapping.java index b86837d4..b00fcb3a 100644 --- a/src/main/java/org/openrewrite/javascript/TypeScriptTypeMapping.java +++ b/src/main/java/org/openrewrite/javascript/TypeScriptTypeMapping.java @@ -31,7 +31,10 @@ import org.openrewrite.javascript.internal.tsc.generated.TSCTypeFlag; import org.openrewrite.javascript.tree.TsType; -import java.util.*; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; import java.util.stream.Collectors; import static java.util.Collections.emptyList; diff --git a/src/main/java/org/openrewrite/javascript/internal/tsc/TSCGlobals.java b/src/main/java/org/openrewrite/javascript/internal/tsc/TSCGlobals.java index f089f7ef..f33977aa 100644 --- a/src/main/java/org/openrewrite/javascript/internal/tsc/TSCGlobals.java +++ b/src/main/java/org/openrewrite/javascript/internal/tsc/TSCGlobals.java @@ -15,7 +15,6 @@ */ package org.openrewrite.javascript.internal.tsc; -import com.caoccao.javet.exceptions.JavetException; import com.caoccao.javet.values.reference.V8ValueObject; import org.jspecify.annotations.Nullable; diff --git a/src/test/java/org/openrewrite/javascript/tree/ArrayTest.java b/src/test/java/org/openrewrite/javascript/tree/ArrayTest.java index 0404105c..02eb29b5 100644 --- a/src/test/java/org/openrewrite/javascript/tree/ArrayTest.java +++ b/src/test/java/org/openrewrite/javascript/tree/ArrayTest.java @@ -16,7 +16,6 @@ package org.openrewrite.javascript.tree; import org.junit.jupiter.api.Test; -import org.junitpioneer.jupiter.ExpectedToFail; import org.openrewrite.test.RewriteTest; import static org.openrewrite.javascript.Assertions.javaScript; diff --git a/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java b/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java index 5856f7a5..3d108226 100644 --- a/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java +++ b/src/test/java/org/openrewrite/javascript/tree/TypeOperatorTest.java @@ -16,8 +16,6 @@ package org.openrewrite.javascript.tree; import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.ValueSource; import org.junitpioneer.jupiter.ExpectedToFail; import org.openrewrite.test.RewriteTest;