< prev index next >

src/java.base/share/classes/java/lang/ClassLoader.java

Print this page
8200125: Fix some classloader/module typos
Reviewed-by: alanb

@@ -697,11 +697,11 @@
     }
 
     /**
      * Finds the class with the given <a href="#binary-name">binary name</a>
      * in a module defined to this class loader.
-     * Class loader implementations that support the loading from modules
+     * Class loader implementations that support loading from modules
      * should override this method.
      *
      * @apiNote This method returns {@code null} rather than throwing
      *          {@code ClassNotFoundException} if the class could not be found.
      *

@@ -1279,11 +1279,11 @@
 
     // -- Resources --
 
     /**
      * Returns a URL to a resource in a module defined to this class loader.
-     * Class loader implementations that support the loading from modules
+     * Class loader implementations that support loading from modules
      * should override this method.
      *
      * @apiNote This method is the basis for the {@link
      * Class#getResource Class.getResource}, {@link Class#getResourceAsStream
      * Class.getResourceAsStream}, and {@link Module#getResourceAsStream

@@ -1415,16 +1415,16 @@
      * {@code getResource(String)} method would return.
      *
      * @param  name
      *         The resource name
      *
-     * @return  An enumeration of {@link java.net.URL URL} objects for
-     *          the resource. If no resources could  be found, the enumeration
-     *          will be empty. Resources for which a {@code URL} cannot be
-     *          constructed, are in package that is not opened unconditionally,
-     *          or access to the resource is denied by the security manager,
-     *          are not returned in the enumeration.
+     * @return  An enumeration of {@link java.net.URL URL} objects for the
+     *          resource. If no resources could be found, the enumeration will
+     *          be empty. Resources for which a {@code URL} cannot be
+     *          constructed, are in a package that is not opened
+     *          unconditionally, or access to the resource is denied by the
+     *          security manager, are not returned in the enumeration.
      *
      * @throws  IOException
      *          If I/O errors occur
      * @throws  NullPointerException If {@code name} is {@code null}
      *
< prev index next >