diff --git a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-local-e2e/src/test/java/org/apache/seatunnel/e2e/connector/file/local/LocalFileIT.java b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-local-e2e/src/test/java/org/apache/seatunnel/e2e/connector/file/local/LocalFileIT.java index 256424c6757..b961d9546ce 100644 --- a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-local-e2e/src/test/java/org/apache/seatunnel/e2e/connector/file/local/LocalFileIT.java +++ b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-local-e2e/src/test/java/org/apache/seatunnel/e2e/connector/file/local/LocalFileIT.java @@ -48,7 +48,6 @@ import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; -import java.io.*; import java.nio.charset.StandardCharsets; import java.nio.file.FileVisitResult; import java.nio.file.Files; @@ -174,7 +173,8 @@ public class LocalFileIT extends TestSuiteBase { Path jsonGz = convertToGzFile( - Lists.newArrayList(ContainerUtil.getResourcesFile("/text/e2e.json")), + Lists.newArrayList( + ContainerUtil.getResourcesFile("/text/e2e.json")), "e2e-json"); ContainerUtil.copyFileIntoContainers( jsonGz, "/seatunnel/read/gz/json/single/e2e-json.gz", container); @@ -211,7 +211,6 @@ public class LocalFileIT extends TestSuiteBase { ContainerUtil.copyFileIntoContainers( xmlGz, "/seatunnel/read/gz/xml/single/e2e-xml.gz", container); - Path txtLzo = convertToLzoFile(ContainerUtil.getResourcesFile("/text/e2e.txt")); ContainerUtil.copyFileIntoContainers( txtLzo, "/seatunnel/read/lzo_text/e2e.txt", container); @@ -245,7 +244,8 @@ public class LocalFileIT extends TestSuiteBase { Path xlsxGz = convertToGzFile( - Lists.newArrayList(ContainerUtil.getResourcesFile("/text/e2e.xlsx")), + Lists.newArrayList( + ContainerUtil.getResourcesFile("/text/e2e.xlsx")), "e2e-xlsx"); ContainerUtil.copyFileIntoContainers( xlsxGz, "/seatunnel/read/gz/xlsx/single/e2e-xlsx.gz", container); @@ -591,8 +591,8 @@ public Path convertToGzFile(List files, String name) throws IOException { Path gzFilePath = Paths.get(firstFile.getParent(), String.format("%s.gz", name)); try (FileInputStream fis = new FileInputStream(firstFile); - FileOutputStream fos = new FileOutputStream(gzFilePath.toFile()); - GZIPOutputStream gzos = new GZIPOutputStream(fos)) { + FileOutputStream fos = new FileOutputStream(gzFilePath.toFile()); + GZIPOutputStream gzos = new GZIPOutputStream(fos)) { byte[] buffer = new byte[2048]; int length;