This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push:
new a77cac008 Reuse NIO API instead of custom code
a77cac008 is described below
commit a77cac008d8ec9bc5b743f19a91e38b5c0986f8a
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Nov 14 14:02:50 2023 -0500
Reuse NIO API instead of custom code
---
.../commons/compress/archivers/zip/ZipArchiveInputStreamTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
index 7061dc0ed..339ba9329 100644
---
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
+++
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
@@ -512,8 +512,8 @@ public class ZipArchiveInputStreamTest extends AbstractTest
{
InputStream inputStream = Channels.newInputStream(channel);
ZipArchiveInputStream splitInputStream = new
ZipArchiveInputStream(inputStream, CharsetNames.UTF_8, true, false, true)) {
- final File fileToCompare =
getFile("COMPRESS-477/split_zip_created_by_zip/zip_to_compare_created_by_zip.zip");
- try (ZipArchiveInputStream inputStreamToCompare = new
ZipArchiveInputStream(Files.newInputStream(fileToCompare.toPath()),
CharsetNames.UTF_8,
+ final Path fileToCompare =
getPath("COMPRESS-477/split_zip_created_by_zip/zip_to_compare_created_by_zip.zip");
+ try (ZipArchiveInputStream inputStreamToCompare = new
ZipArchiveInputStream(Files.newInputStream(fileToCompare), CharsetNames.UTF_8,
true, false, true)) {
ArchiveEntry entry;
@@ -534,8 +534,8 @@ public class ZipArchiveInputStreamTest extends AbstractTest
{
InputStream inputStream = Channels.newInputStream(channel);
ZipArchiveInputStream splitInputStream = new
ZipArchiveInputStream(inputStream, CharsetNames.UTF_8, true, false, true)) {
- final File fileToCompare =
getFile("COMPRESS-477/split_zip_created_by_zip/zip_to_compare_created_by_zip_zip64.zip");
- try (ZipArchiveInputStream inputStreamToCompare = new
ZipArchiveInputStream(Files.newInputStream(fileToCompare.toPath()),
CharsetNames.UTF_8,
+ final Path fileToCompare =
getPath("COMPRESS-477/split_zip_created_by_zip/zip_to_compare_created_by_zip_zip64.zip");
+ try (ZipArchiveInputStream inputStreamToCompare = new
ZipArchiveInputStream(Files.newInputStream(fileToCompare), CharsetNames.UTF_8,
true, false, true)) {
ArchiveEntry entry;