From f1a83f40fd1ff9359387f98bb7c4ea6edd9d2b1e Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 28 Nov 2024 12:32:39 +0100 Subject: [PATCH] Use Stream.toList() --- src/test/java/org/openrewrite/staticanalysis/JavaToCsharp.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/openrewrite/staticanalysis/JavaToCsharp.java b/src/test/java/org/openrewrite/staticanalysis/JavaToCsharp.java index c0821e834..06b5b6221 100644 --- a/src/test/java/org/openrewrite/staticanalysis/JavaToCsharp.java +++ b/src/test/java/org/openrewrite/staticanalysis/JavaToCsharp.java @@ -21,7 +21,6 @@ import org.openrewrite.java.tree.Statement; import java.util.List; -import static java.util.stream.Collectors.toList; public class JavaToCsharp { @@ -41,7 +40,7 @@ public static Cs.CompilationUnit compilationUnit(J.CompilationUnit cu) { cu.getClasses().stream() .map(Statement.class::cast) .map(JRightPadded::build) - .collect(toList()), + .toList(), cu.getEof()); } }