[Libreoffice-commits] .: bridges/test

Julien Nabet serval2412 at kemper.freedesktop.org
Tue May 3 14:07:05 PDT 2011


 bridges/test/java_uno/equals/TestEquals.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b618197720b751e5b7f10f4e6ee10ee5dce1a4f7
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue May 3 23:06:47 2011 +0200

    Change <file>.toURL() to <file>.toURI().toURL()

diff --git a/bridges/test/java_uno/equals/TestEquals.java b/bridges/test/java_uno/equals/TestEquals.java
index b2d1349..948c884 100644
--- a/bridges/test/java_uno/equals/TestEquals.java
+++ b/bridges/test/java_uno/equals/TestEquals.java
@@ -71,7 +71,7 @@ public final class TestEquals {
     }
 
     private static String toFileUrl(String path) throws MalformedURLException {
-        String url = new File(path).toURL().toString();
+        String url = new File(path).toURI().toURL().toString();
         String prefix = "file:/";
         if (url.startsWith(prefix)
             && (url.length() == prefix.length()


More information about the Libreoffice-commits mailing list