Skip to content

Commit f1a83f4

Browse files
committed
Use Stream.toList()
1 parent 9f0bb94 commit f1a83f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/org/openrewrite/staticanalysis/JavaToCsharp.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.openrewrite.java.tree.Statement;
2222

2323
import java.util.List;
24-
import static java.util.stream.Collectors.toList;
2524

2625
public class JavaToCsharp {
2726

@@ -41,7 +40,7 @@ public static Cs.CompilationUnit compilationUnit(J.CompilationUnit cu) {
4140
cu.getClasses().stream()
4241
.map(Statement.class::cast)
4342
.map(JRightPadded::build)
44-
.collect(toList()),
43+
.toList(),
4544
cu.getEof());
4645
}
4746
}

0 commit comments

Comments
 (0)