/** * Invokes {@link GeoTools#scanSystemProperties} when first needed. The caller is * responsible for invoking {@link GeoTools#fireConfigurationChanged} outside the * synchronized block if this method returns {@code true}. * * @return {@code true} if at least one hint changed as a result of this scan, * or {@code false} otherwise. */ private static boolean ensureSystemDefaultLoaded() { assert Thread.holdsLock(GLOBAL); if (needScan) { needScan = false; return GeoTools.scanForSystemHints(GLOBAL); } else { return false; } }
/** * Invokes {@link GeoTools#scanSystemProperties} when first needed. The caller is * responsible for invoking {@link GeoTools#fireConfigurationChanged} outside the * synchronized block if this method returns {@code true}. * * @return {@code true} if at least one hint changed as a result of this scan, * or {@code false} otherwise. */ private static boolean ensureSystemDefaultLoaded() { assert Thread.holdsLock(GLOBAL); if (needScan) { needScan = false; return GeoTools.scanForSystemHints(GLOBAL); } else { return false; } }