This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.net.URL.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached patch to trunk to make java.net.URL closer to 
classpath's version. It fixes to method documentations, adds a new 
documentation and reformats a method declaration.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/GkalWSOgCCdjSDsRAlE6AJ9st3J/Um5qV7NgH99kbFG+rdFK6ACff2jT
jH0WaG4TD3J/aS4XGNzznjQ=
=thof
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2038
diff -u -b -B -r1.2038 ChangeLog
--- ChangeLog	19 Jul 2003 22:19:56 -0000	1.2038
+++ ChangeLog	20 Jul 2003 07:30:27 -0000
@@ -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: java/net/URL.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/URL.java,v
retrieving revision 1.22
diff -u -b -B -r1.22 URL.java
--- java/net/URL.java	24 Jun 2003 20:22:47 -0000	1.22
+++ java/net/URL.java	20 Jul 2003 07:30:32 -0000
@@ -213,7 +213,7 @@
    * @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,7 +222,7 @@
    *
    * @since 1.2
    */
-  public URL(String protocol, String host, int port, String file,
+  public URL (String protocol, String host, int port, String file,
 	     URLStreamHandler ph)
     throws MalformedURLException
   {
@@ -320,7 +320,7 @@
    *
    * @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 @@
     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)
   {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]