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-vfs.git
commit 15441ed0fd1d4a9a6d970f8bcf4a4c526519d521 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jun 23 16:25:14 2023 -0400 [zip] Throw a specialized RuntimeException instead of RuntimeException --- .../main/java/org/apache/commons/vfs2/provider/tar/TarFileObject.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileObject.java index 0cf01be4..620ae034 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileObject.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileObject.java @@ -17,6 +17,7 @@ package org.apache.commons.vfs2.provider.tar; import java.io.InputStream; +import java.io.UncheckedIOException; import java.util.HashSet; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; @@ -116,7 +117,7 @@ public class TarFileObject extends AbstractFileObject<TarFileSystem> { } } catch (final FileSystemException e) { // should not happen as the type has already been cached. - throw new RuntimeException(e); + throw new UncheckedIOException(e); } return children.toArray(ArrayUtils.EMPTY_STRING_ARRAY);