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 a3a6c9b78 Revert "Use try-with-resources" a3a6c9b78 is described below commit a3a6c9b78a8c065d3e8bc1cd5308c990d468ffc4 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 17 14:48:22 2024 -0400 Revert "Use try-with-resources" This reverts commit 13b6fbacda935c8aae98ad9cef98fe9d7a1feda4. --- .../commons/compress/archivers/tar/TarArchiveInputStreamTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java index 8ad695beb..50b02c1fd 100644 --- a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java +++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java @@ -151,8 +151,8 @@ public class TarArchiveInputStreamTest extends AbstractTest { // tar these dirs final String fileName = "/" + dirDirectory + "/" + subDir; final File tarF = new File(rootPath + "/tar" + i + ".tar"); - try (OutputStream dest = Files.newOutputStream(tarF.toPath()); - TarArchiveOutputStream out = new TarArchiveOutputStream(new BufferedOutputStream(dest))) { + try (OutputStream dest = Files.newOutputStream(tarF.toPath())) { + final TarArchiveOutputStream out = new TarArchiveOutputStream(new BufferedOutputStream(dest)); out.setBigNumberMode(TarArchiveOutputStream.BIGNUMBER_STAR); out.setLongFileMode(TarArchiveOutputStream.LONGFILE_GNU);