Replace usage of deprecated method with alternative.
Deprecated method:
java.io.File.toURL
Alternative method:
java.io.File.toURI and java.net.URI.toURL
@@ -83,7 +83,7 @@ public class PluginClassLoader extends URLClassLoader {
for (File jar : jars) {
if (jar.isFile()) {
- final URL url = jar.toURL();
+ final URL url = jar.toURI().toURL();
addURL(url);
try {
checkForSmackProviders(url);
