src/java.base/share/classes/jdk/internal/module/SystemModuleFinders.java
changeset 53018 8bf9268df0e2
parent 52427 3c6aa484536c
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
    81     static {
    81     static {
    82         String value = System.getProperty("jdk.system.module.finder.disableFastPath");
    82         String value = System.getProperty("jdk.system.module.finder.disableFastPath");
    83         if (value == null) {
    83         if (value == null) {
    84             USE_FAST_PATH = true;
    84             USE_FAST_PATH = true;
    85         } else {
    85         } else {
    86             USE_FAST_PATH = (value.length() > 0) && !Boolean.parseBoolean(value);
    86             USE_FAST_PATH = !value.isEmpty() && !Boolean.parseBoolean(value);
    87         }
    87         }
    88     }
    88     }
    89 
    89 
    90     // cached ModuleFinder returned from ofSystem
    90     // cached ModuleFinder returned from ofSystem
    91     private static volatile ModuleFinder cachedSystemModuleFinder;
    91     private static volatile ModuleFinder cachedSystemModuleFinder;