8215048: Some classloader typos
authormartin
Sun, 09 Dec 2018 10:07:18 -0800
changeset 52915 3addaaf7eaea
parent 52914 4fa75d8ad418
child 52916 3ee633205603
8215048: Some classloader typos Reviewed-by: alanb
src/java.base/share/classes/java/lang/ClassLoader.java
src/java.base/share/classes/jdk/internal/loader/URLClassPath.java
--- 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());
                 }