< prev index next >

src/java.base/share/classes/jdk/internal/loader/Loader.java

Print this page
8198481: Coding style cleanups for src/java.base/share/classes/jdk/internal/loader/ClassLoaders.java
Reviewed-by: mchung, alanb

@@ -61,11 +61,10 @@
 import java.util.stream.Stream;
 
 import jdk.internal.misc.SharedSecrets;
 import jdk.internal.module.Resources;
 
-
 /**
  * A class loader that loads classes and resources from a collection of
  * modules, or from a single module where the class loader is a member
  * of a pool of class loaders.
  *

@@ -82,38 +81,40 @@
  * unnamed module of the parent class loader.
  *
  * @see ModuleLayer#defineModulesWithOneLoader
  * @see ModuleLayer#defineModulesWithManyLoaders
  */
-
 public final class Loader extends SecureClassLoader {
 
     static {
         ClassLoader.registerAsParallelCapable();
     }
 
-    // the loader pool is in a pool, can be null
+    /** the loader pool is in a pool, can be null */
     private final LoaderPool pool;
 
-    // parent ClassLoader, can be null
+    /** parent ClassLoader, can be null */
     private final ClassLoader parent;
 
-    // maps a module name to a module reference
+    /** maps a module name to a module reference */
     private final Map<String, ModuleReference> nameToModule;
 
-    // maps package name to a module loaded by this class loader
+    /** maps package name to a module loaded by this class loader */
     private final Map<String, LoadedModule> localPackageToModule;
 
-    // maps package name to a remote class loader, populated post initialization
+    /**
+     * maps package name to a remote class loader, populated post
+     * initialization
+     */
     private final Map<String, ClassLoader> remotePackageToLoader
         = new ConcurrentHashMap<>();
 
-    // maps a module reference to a module reader, populated lazily
+    /** maps a module reference to a module reader, populated lazily */
     private final Map<ModuleReference, ModuleReader> moduleToReader
         = new ConcurrentHashMap<>();
 
-    // ACC used when loading classes and resources */
+    /** ACC used when loading classes and resources */
     private final AccessControlContext acc;
 
     /**
      * A module defined/loaded to a {@code Loader}.
      */
< prev index next >