@Test public void testToURL_Relative() throws Exception { relativeFile.mkdirs(); trackFile(relativeFile, this); File tempFile = createTrackedFile(this, relativeFile); URL url = toURL("file: try (InputStream in = url.openStream()) { } URL url2 = toURL("file: try (InputStream in = url2.openStream()) { } }
public static URL toURL(String s) throws Exception { URI configuredUri = toURI(s); return isLocal(configuredUri) ? localResource(configuredUri) : new URL(configuredUri.toString()); }
ResourceLocator { public static URL toURL(String s) throws Exception { URI configuredUri = toURI(s); return isLocal(configuredUri) ? localResource(configuredUri) : new URL(configuredUri.toString()); } }
ResourceLocator { public static URL toURL(String s) throws Exception { URI configuredUri = toURI(s); return isLocal(configuredUri) ? localResource(configuredUri) : new URL(configuredUri.toString()); }  }
ResourceLocator { public static URL toURL(String s) throws Exception { URI configuredUri = toURI(s); return isLocal(configuredUri) ? localResource(configuredUri) : new URL(configuredUri.toString()); }  static URL toURL(String s); }
ResourceLocator { public static URL toURL(String s) throws Exception { URI configuredUri = toURI(s); return isLocal(configuredUri) ? localResource(configuredUri) : new URL(configuredUri.toString()); }  static URL toURL(String s);  }