[PATCH] Removing the deprecated java.io.File.toURL() method.

Cyril Roelandt tipecaml at gmail.com
Wed Apr 27 16:02:51 PDT 2011


java.io.File.toURL() has been replaced by java.io.File.toURI().toURL().
---
 .../openoffice/xmerge/util/ActiveSyncDriver.java   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java
index 21c6b64..2b922da 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java
@@ -100,7 +100,7 @@ public class ActiveSyncDriver {
             pluginJar = new File(ooClassDir + "pexcel.jar");
         }
                
-        ConverterInfoReader cirPlugin = new ConverterInfoReader(pluginJar.toURL().toString(), false);     
+        ConverterInfoReader cirPlugin = new ConverterInfoReader(pluginJar.toURI().toURL().toString(), false);
         
         ConverterInfoMgr.addPlugIn(cirPlugin.getConverterInfoEnumeration());
         
-- 
1.7.3.4


--------------070207050101030105090701--


More information about the LibreOffice mailing list