changeset 12449:1b5aa834def7

Fixed typo in ClassLoader xxxResource methods Configuration and ModuleExport should be final
author alanb
date Tue, 21 Apr 2015 10:02:22 +0100
parents 8189e265bb7e
children a9dbe90b43c3
files src/java.base/share/classes/java/lang/ClassLoader.java src/java.base/share/classes/java/lang/module/Configuration.java src/java.base/share/classes/java/lang/module/ModuleExport.java
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/ClassLoader.java	Mon Apr 20 08:58:33 2015 -0700
+++ b/src/java.base/share/classes/java/lang/ClassLoader.java	Tue Apr 21 10:02:22 2015 +0100
@@ -1135,7 +1135,7 @@
      * that is independent of the location of the code.
      *
      * Resources in a named module are private to that module. This method does
-     * not find resource in named modules.
+     * not find resources in named modules.
      *
      * <p>The name of a resource is a <tt>/</tt>-separated path name that
      * identifies the resource.
@@ -1202,7 +1202,7 @@
      * should override this method to specify where to find resources.
      *
      * Resources in a named module are private to that module. This method does
-     * not find resource in named modules defined to this class loader.
+     * not find resources in named modules defined to this class loader.
      *
      * @param  name
      *         The resource name
@@ -1223,7 +1223,7 @@
      * resources from.
      *
      * Resources in a named module are private to that module. This method does
-     * not find resource in named modules defined to this class loader.
+     * not find resources in named modules defined to this class loader.
      *
      * @param  name
      *         The resource name
@@ -1270,7 +1270,7 @@
      * loader (see {@link #getSystemClassLoader()}).
      *
      * Resources in a named module are private to that module. This method does
-     * not find resource in named modules.
+     * not find resources in named modules.
      *
      * @param  name
      *         The resource name
@@ -1295,7 +1295,7 @@
      * java.net.URL <tt>URL</tt>} objects.
      *
      * Resources in a named module are private to that module. This method does
-     * not find resource in named modules.
+     * not find resources in named modules.
      *
      * <p> The search order is described in the documentation for {@link
      * #getSystemResource(String)}.  </p>
@@ -1325,7 +1325,7 @@
      * Returns an input stream for reading the specified resource.
      *
      * Resources in a named module are private to that module. This method does
-     * not find resource in named modules.
+     * not find resources in named modules.
      *
      * <p> The search order is described in the documentation for {@link
      * #getResource(String)}.  </p>
@@ -1353,7 +1353,7 @@
      * system class loader (see {@link #getSystemClassLoader()}).
      *
      * Resources in a named module are private to that module. This method does
-     * not find resource in named modules.
+     * not find resources in named modules.
      *
      * @param  name
      *         The resource name
--- a/src/java.base/share/classes/java/lang/module/Configuration.java	Mon Apr 20 08:58:33 2015 -0700
+++ b/src/java.base/share/classes/java/lang/module/Configuration.java	Tue Apr 21 10:02:22 2015 +0100
@@ -54,7 +54,7 @@
  * }</pre>
  */
 
-public class Configuration {
+public final class Configuration {
 
     private final Resolver.Resolution resolution;
 
--- a/src/java.base/share/classes/java/lang/module/ModuleExport.java	Mon Apr 20 08:58:33 2015 -0700
+++ b/src/java.base/share/classes/java/lang/module/ModuleExport.java	Tue Apr 21 10:02:22 2015 +0100
@@ -31,7 +31,7 @@
  * <p> A module export, may be qualified or unqualified. </p>
  */
 
-public class ModuleExport {
+public final class ModuleExport {
 
     private final String pkg;
     private final String permit;