2003-07-20 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Sun, 20 Jul 2003 07:30:59 +0000 (07:30 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Sun, 20 Jul 2003 07:30:59 +0000 (07:30 +0000)
* java/net/URL.java
(URL): Fixed documentation to name an argument correcty, Reformatted
one method declaration.
(getURLStreamHandler): Added documentation from classpath.

From-SVN: r69606

libjava/ChangeLog
libjava/java/net/URL.java

index 196d897a6deace8402602b0b056449d8a4f23d63..dcf3011aec9a24b1ac555ddfbe1960dba1801f63 100644 (file)
@@ -1,3 +1,9 @@
+2003-07-20  Michael Koch  <konqueror@gmx.de>
+
+       * java/net/URL.java
+       (URL): Fixed documentation to name an argument correcty, Reformatted
+       one method declaration.
+       (getURLStreamHandler): Added documentation from classpath.
 2003-07-19  Tom Tromey  <tromey@redhat.com>
 
        * mauve-libgcj: Don't run CollationElementIterator tests.
index 12c86914e3088dcf5865c0dce0143548598b8616..fa6f660ffb79779c4fe30b79d2653539c63c4517 100644 (file)
@@ -213,7 +213,7 @@ public final class URL implements Serializable
    * @param port The port number to use, or -1 to use the protocol's default
    * port
    * @param file The "file" portion of the URL.
-   * @param handler The protocol handler to use with this URL.
+   * @param ph The protocol handler to use with this URL.
    *
    * @exception MalformedURLException If no protocol handler can be loaded
    * for the specified protocol.
@@ -222,8 +222,8 @@ public final class URL implements Serializable
    *
    * @since 1.2
    */
-  public URL(String protocol, String host, int port, String file,
-            URLStreamHandler ph)
+  public URL (String protocol, String host, int port, String file,
+             URLStreamHandler ph)
     throws MalformedURLException
   {
     if (protocol == null)
@@ -320,7 +320,7 @@ public final class URL implements Serializable
    *
    * @param context The context in which to parse the specification
    * @param spec The string to parse as an URL
-   * @param handler The stream handler for the URL
+   * @param ph The stream handler for the URL
    *
    * @exception MalformedURLException If a protocol handler cannot be found
    * or the URL cannot be parsed
@@ -718,6 +718,14 @@ public final class URL implements Serializable
     return ph.toExternalForm(this);
   }
 
+  /**
+   * This internal method is used in two different constructors to load
+   * a protocol handler for this URL.
+   *
+   * @param protocol The protocol to load a handler for
+   *
+   * @return A URLStreamHandler for this protocol, or null when not found.
+   */
   private static synchronized URLStreamHandler
     getURLStreamHandler (String protocol)
   {