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 974fabbec944195daff34036a9080ce3766ce2ab Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jun 23 16:24:50 2023 -0400 [http5] Throw a specialized RuntimeException instead of RuntimeException --- .../java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java index 63b7c361..c1b81f7c 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/http5/Http5FileSystem.java @@ -17,6 +17,7 @@ package org.apache.commons.vfs2.provider.http5; import java.io.IOException; +import java.io.UncheckedIOException; import java.net.URI; import java.util.Collection; @@ -91,7 +92,7 @@ public class Http5FileSystem extends AbstractFileSystem { try { ((CloseableHttpClient) httpClient).close(); } catch (final IOException e) { - throw new RuntimeException("Error closing HttpClient", e); + throw new UncheckedIOException("Error closing HttpClient", e); } } }