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 bcce8edd6384b1566027aeb3057b2cfa0d97ca87 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Sep 23 10:51:27 2020 -0400 Remove unnecessary exception handling in test. --- .../src/test/java/org/apache/commons/vfs2/test/UrlTests.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/UrlTests.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/UrlTests.java index 9409281..1602def 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/UrlTests.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/test/UrlTests.java @@ -47,12 +47,7 @@ public class UrlTests extends AbstractProviderTestCase { assertEquals(file.getName().getURI(), url.toExternalForm()); - final URL parentURL; - try { - parentURL = new URL(url, ".."); - } catch (final MalformedURLException e) { - throw e; - } + final URL parentURL = new URL(url, ".."); assertEquals(file.getParent().getURL(), parentURL); final URL rootURL = new URL(url, "/");