You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/23 20:27:18 UTC
[commons-vfs] 11/15: [filter] Throw a specialized RuntimeException instead of RuntimeException
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 2228fd51d4116e7f0ede60e84ce8a05dd0858a41
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 23 16:25:51 2023 -0400
[filter] Throw a specialized RuntimeException instead of
RuntimeException
---
.../src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
index 1f9ec507..f38d335e 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/filter/BaseFilterTest.java
@@ -24,6 +24,7 @@ import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.io.InputStream;
+import java.io.UncheckedIOException;
import java.nio.file.Files;
import java.util.Arrays;
import java.util.List;
@@ -124,7 +125,7 @@ public abstract class BaseFilterTest {
try {
return fileObject.getParent();
} catch (final FileSystemException ex) {
- throw new RuntimeException(ex);
+ throw new UncheckedIOException(ex);
}
}
@@ -144,7 +145,7 @@ public abstract class BaseFilterTest {
}
};
} catch (final FileSystemException ex) {
- throw new RuntimeException(ex);
+ throw new UncheckedIOException(ex);
}
}