@Test(expected=MalformedURLException.class) public void testToURL$nonLoaded() throws Exception { org.junit.Assume.assumeFalse(ProtocolHandlerConfigurator.isSupported("net")); URIUtils.toURL(custom); }
public static URL toURL(URI uri) throws MalformedURLException { Objects.requireNonNull(uri, "URI cannot be null"); try { return uri.toURL(); } catch(MalformedURLException e) { return tryFallback(uri, e); } }
URIUtils { public static URL toURL(URI uri) throws MalformedURLException { Objects.requireNonNull(uri, "URI cannot be null"); try { return uri.toURL(); } catch(MalformedURLException e) { return tryFallback(uri, e); } } }
URIUtils { public static URL toURL(URI uri) throws MalformedURLException { Objects.requireNonNull(uri, "URI cannot be null"); try { return uri.toURL(); } catch(MalformedURLException e) { return tryFallback(uri, e); } } private  URIUtils(); }
URIUtils { public static URL toURL(URI uri) throws MalformedURLException { Objects.requireNonNull(uri, "URI cannot be null"); try { return uri.toURL(); } catch(MalformedURLException e) { return tryFallback(uri, e); } } private  URIUtils(); static URL toURL(URI uri); static URI relativize(URI base, URI target); static URI resolve(URI base, URI target); }
URIUtils { public static URL toURL(URI uri) throws MalformedURLException { Objects.requireNonNull(uri, "URI cannot be null"); try { return uri.toURL(); } catch(MalformedURLException e) { return tryFallback(uri, e); } } private  URIUtils(); static URL toURL(URI uri); static URI relativize(URI base, URI target); static URI resolve(URI base, URI target);  }