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

Cyril Roelandt tipecaml at gmail.com
Thu Apr 28 15:36:20 PDT 2011


Hello,

The java.io.File.toURL() method is now deprecated 
(http://download.oracle.com/javase/6/docs/api/java/io/File.html#toURL%28%29). 
The java compiler generates that kind of warnings :

warning: [deprecation] toURL() in java.io.File has been deprecated
         ConverterInfoReader cirPlugin = new 
ConverterInfoReader(pluginJar.toURL().toString(), false);


The attached patch replaces a call to File.toURL() by a call to 
File.toURI() followed by a call to URI.toURL() in ActiveSyncDriver.java.

Feel free to apply whatever free software licence you want to the crazy 
piece of code that comes as an attachment.

Best Regards,
Cyril Roelandt.


More information about the LibreOffice mailing list