diff options
Diffstat (limited to 'testing-util')
-rw-r--r-- | testing-util/src/org/aspectj/testing/util/TestUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing-util/src/org/aspectj/testing/util/TestUtil.java b/testing-util/src/org/aspectj/testing/util/TestUtil.java index 6bf3350cf..4b62f9a90 100644 --- a/testing-util/src/org/aspectj/testing/util/TestUtil.java +++ b/testing-util/src/org/aspectj/testing/util/TestUtil.java @@ -135,7 +135,7 @@ public final class TestUtil { public static URL fileToURL(File file) { try { - return file.toURI().toURL(); + return file.toURL(); } catch (MalformedURLException e) { return null; } @@ -223,7 +223,7 @@ public final class TestUtil { public static URL libURL(String rpath) { File file = libFile(rpath); try { - return file.toURI().toURL(); + return file.toURL(); } catch (MalformedURLException e) { throw new IllegalArgumentException("bad URL from: " + file); } |