< prev index next >
src/java.base/share/classes/java/net/URL.java
Print this page
imported patch classloader-cleanup
@@ -1024,11 +1024,11 @@
return handler.toExternalForm(this);
}
/**
* Returns a {@link java.net.URI} equivalent to this URL.
- * This method functions in the same way as {@code new URI (this.toString())}.
+ * This method functions in the same way as {@code new URI(this.toString())}.
* <p>Note, any URL instance that complies with RFC 2396 can be converted
* to a URI. However, some URLs that are not strictly in compliance
* can not be converted to a URI.
*
* @exception URISyntaxException if this URL is not formatted strictly according to
@@ -1036,11 +1036,11 @@
*
* @return a URI instance equivalent to this URL.
* @since 1.5
*/
public URI toURI() throws URISyntaxException {
- return new URI (toString());
+ return new URI(toString());
}
/**
* Returns a {@link java.net.URLConnection URLConnection} instance that
* represents a connection to the remote object referred to by the
< prev index next >