< prev index next >

src/java.base/share/classes/jdk/internal/module/SystemModuleFinders.java

Print this page
rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: TBD

*** 81,91 **** static { String value = System.getProperty("jdk.system.module.finder.disableFastPath"); if (value == null) { USE_FAST_PATH = true; } else { ! USE_FAST_PATH = (value.length() > 0) && !Boolean.parseBoolean(value); } } // cached ModuleFinder returned from ofSystem private static volatile ModuleFinder cachedSystemModuleFinder; --- 81,91 ---- static { String value = System.getProperty("jdk.system.module.finder.disableFastPath"); if (value == null) { USE_FAST_PATH = true; } else { ! USE_FAST_PATH = !value.isEmpty() && !Boolean.parseBoolean(value); } } // cached ModuleFinder returned from ofSystem private static volatile ModuleFinder cachedSystemModuleFinder;
< prev index next >