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 f40b1c7e1498ff758d3a7df6833fcc080b2fb9c1 Author: Gary Gregory <[email protected]> AuthorDate: Fri Jun 23 16:26:04 2023 -0400 [impl] Throw a specialized RuntimeException instead of RuntimeException --- .../test/java/org/apache/commons/vfs2/impl/VfsClassLoaderTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/VfsClassLoaderTests.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/VfsClassLoaderTests.java index 533ba676..cee9f8e9 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/VfsClassLoaderTests.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/VfsClassLoaderTests.java @@ -296,8 +296,8 @@ public class VfsClassLoaderTests extends AbstractProviderTestCase { final Object testObject = testClass.newInstance(); assertEquals("**PRIVATE**", testObject.toString()); - } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { - throw new RuntimeException(e); + } catch (ReflectiveOperationException e) { + throw new IllegalStateException(e); } } }
