test: Avoid deprecated method
@@ -5,6 +5,7 @@ import java.net.MalformedURLException;
import java.net.URL;
import java.util.Dictionary;
import java.util.Hashtable;
+
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
@@ -33,7 +34,7 @@ public class HttpWhiteboardSecurityTestBundle1 implements BundleActivator {
File file = new File(name);
try {
- return file.toURL();
+ return file.toURI().toURL();
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
