mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user