< prev index next >

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

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

*** 49,75 **** /** * Find resources and packages in modules defined to the boot class loader or * resources and packages on the "boot class path" specified via -Xbootclasspath/a. */ - public class BootLoader { private BootLoader() { } ! // The unnamed module for the boot loader private static final Module UNNAMED_MODULE; private static final String JAVA_HOME = System.getProperty("java.home"); static { UNNAMED_MODULE = SharedSecrets.getJavaLangAccess().defineUnnamedModule(null); setBootLoaderUnnamedModule0(UNNAMED_MODULE); } ! // ServiceCatalog for the boot class loader private static final ServicesCatalog SERVICES_CATALOG = ServicesCatalog.create(); ! // ClassLoaderValue map for boot class loader private static final ConcurrentHashMap<?, ?> CLASS_LOADER_VALUE_MAP = new ConcurrentHashMap<>(); /** * Returns the unnamed module for the boot loader. --- 49,75 ---- /** * Find resources and packages in modules defined to the boot class loader or * resources and packages on the "boot class path" specified via -Xbootclasspath/a. */ public class BootLoader { private BootLoader() { } ! /** The unnamed module for the boot loader */ private static final Module UNNAMED_MODULE; + private static final String JAVA_HOME = System.getProperty("java.home"); static { UNNAMED_MODULE = SharedSecrets.getJavaLangAccess().defineUnnamedModule(null); setBootLoaderUnnamedModule0(UNNAMED_MODULE); } ! /** ServiceCatalog for the boot class loader */ private static final ServicesCatalog SERVICES_CATALOG = ServicesCatalog.create(); ! /** ClassLoaderValue map for the boot class loader */ private static final ConcurrentHashMap<?, ?> CLASS_LOADER_VALUE_MAP = new ConcurrentHashMap<>(); /** * Returns the unnamed module for the boot loader.
< prev index next >