RFR 8185027: Typo in java.net.URLClassLoader.findResources(String) method documentation

Chris Hegarty chris.hegarty at oracle.com
Tue Dec 12 10:27:04 UTC 2017


The returns section of the java.net.URLClassLoader.findResources(String)
method documentation, contains the following sentence:
    "an Enumeration of URLs If the loader is closed, the Enumeration
     will be empty."
should be replaced by:
    "An Enumeration of URLs. If the loader is closed, the Enumeration
     will be empty."

diff --git a/src/java.base/share/classes/java/net/URLClassLoader.java 
b/src/java.base/share/classes/java/net/URLClassLoader.java
--- a/src/java.base/share/classes/java/net/URLClassLoader.java
+++ b/src/java.base/share/classes/java/net/URLClassLoader.java
@@ -658,7 +658,7 @@
       *
       * @param name the resource name
       * @exception IOException if an I/O exception occurs
-     * @return an {@code Enumeration} of {@code URL}s
+     * @return An {@code Enumeration} of {@code URL}s.
       *         If the loader is closed, the Enumeration will be empty.
       */
      public Enumeration<URL> findResources(final String name)

-Chris.


More information about the net-dev mailing list