changeset 53952:3addaaf7eaea

8215048: Some classloader typos Reviewed-by: alanb
author martin
date Sun, 09 Dec 2018 10:07:18 -0800
parents 4fa75d8ad418
children 3ee633205603
files src/java.base/share/classes/java/lang/ClassLoader.java src/java.base/share/classes/jdk/internal/loader/URLClassPath.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/ClassLoader.java	Sun Dec 09 12:36:24 2018 -0500
+++ b/src/java.base/share/classes/java/lang/ClassLoader.java	Sun Dec 09 10:07:18 2018 -0800
@@ -2430,7 +2430,7 @@
             if (!load0(name, isBuiltin)) return false;
 
             // register the class loader for cleanup when unloaded
-            // built class loaders are never unloaded
+            // builtin class loaders are never unloaded
             ClassLoader loader = fromClass.getClassLoader();
             if (loader != null &&
                 loader != getBuiltinPlatformClassLoader() &&
--- a/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java	Sun Dec 09 12:36:24 2018 -0500
+++ b/src/java.base/share/classes/jdk/internal/loader/URLClassPath.java	Sun Dec 09 10:07:18 2018 -0800
@@ -805,7 +805,7 @@
         private JarFile getJarFile(URL url) throws IOException {
             // Optimize case where url refers to a local jar file
             if (isOptimizable(url)) {
-                FileURLMapper p = new FileURLMapper (url);
+                FileURLMapper p = new FileURLMapper(url);
                 if (!p.exists()) {
                     throw new FileNotFoundException(p.getPath());
                 }