Skip to content

Commit 18a1ba0

Browse files
OpenRewrite recipe best practices
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
1 parent 162c2e4 commit 18a1ba0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/openrewrite/java/testing/junit5/TemporaryFolderToTempDir.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public J visitCompilationUnit(J.CompilationUnit cu, ExecutionContext ctx) {
7474
.visit(c, ctx);
7575
maybeRemoveImport("org.junit.ClassRule");
7676
maybeRemoveImport("org.junit.Rule");
77-
maybeAddImport("java.io.File");
7877
maybeRemoveImport("org.junit.rules.TemporaryFolder");
78+
maybeAddImport("java.io.File");
7979
maybeAddImport("java.nio.file.Files");
8080
maybeAddImport("org.junit.jupiter.api.io.TempDir");
8181
}

0 commit comments

Comments
 (0)