File.toURL() is deprecated.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19471 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
jglick committed 2009-07-07 18:31:24 +00:00
1 parent 3ec951ec1a
commit 2dd667265b
8 files changed
+15 -15

No files matched your search

@@ -65,7 +65,7 @@ public interface HudsonHomeLoader {
* Either a zip file or a directory that contains the home image.
*/
public CopyExisting(File source) throws MalformedURLException {
this(source.toURL());
this(source.toURI().toURL());
}
/**
@@ -963,7 +963,7 @@ public abstract class HudsonTestCase extends TestCase {
if(dir.exists() && MetaClassLoader.debugLoader==null)
try {
MetaClassLoader.debugLoader = new MetaClassLoader(
new URLClassLoader(new URL[]{dir.toURL()}));
new URLClassLoader(new URL[]{dir.toURI().toURL()}));
} catch (MalformedURLException e) {
throw new AssertionError(e);
}