< prev index next >
src/java.base/share/classes/java/net/URL.java
Print this page
@@ -1007,11 +1007,11 @@
* <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
- * to RFC2396 and cannot be converted to a URI.
+ * RFC2396 and cannot be converted to a URI.
*
* @return a URI instance equivalent to this URL.
* @since 1.5
*/
public URI toURI() throws URISyntaxException {
@@ -1052,11 +1052,11 @@
}
/**
* Same as {@link #openConnection()}, except that the connection will be
* made through the specified proxy; Protocol handlers that do not
- * support proxing will ignore the proxy parameter and make a
+ * support proxying will ignore the proxy parameter and make a
* normal connection.
*
* Invoking this method preempts the system's default
* {@link java.net.ProxySelector ProxySelector} settings.
*
< prev index next >