/** * Returns the current cache version. This has the possible side * effect of updating the cache if needed. */ public static synchronized int getCacheVersion() { if (needRefresh) { cacheVersion++; synchronized (services) { services.clear(); } cachedSecureRandomService = null; for (Provider p : providers) { initServiceInfo(p); } needRefresh = false; } return cacheVersion; } }
/** * Returns the current cache version. This has the possible side * effect of updating the cache if needed. */ public static synchronized int getCacheVersion() { if (needRefresh) { cacheVersion++; synchronized (services) { services.clear(); } cachedSecureRandomService = null; for (Provider p : providers) { initServiceInfo(p); } needRefresh = false; } return cacheVersion; } }
/** * Returns the current cache version. This has the possible side * effect of updating the cache if needed. */ public static synchronized int getCacheVersion() { if (needRefresh) { cacheVersion++; synchronized (services) { services.clear(); } cachedSecureRandomService = null; for (Provider p : providers) { initServiceInfo(p); } needRefresh = false; } return cacheVersion; } }
/** * Returns the current cache version. This has the possible side * effect of updating the cache if needed. */ public static synchronized int getCacheVersion() { if (needRefresh) { cacheVersion++; synchronized (services) { services.clear(); } cachedSecureRandomService = null; for (Provider p : providers) { initServiceInfo(p); } needRefresh = false; } return cacheVersion; } }
/** * Returns the current cache version. This has the possible side * effect of updating the cache if needed. */ public static synchronized int getCacheVersion() { if (needRefresh) { cacheVersion++; synchronized (services) { services.clear(); } cachedSecureRandomService = null; for (Provider p : providers) { initServiceInfo(p); } needRefresh = false; } return cacheVersion; } }
/** * Returns the current cache version. This has the possible side * effect of updating the cache if needed. */ public static synchronized int getCacheVersion() { if (needRefresh) { cacheVersion++; synchronized (services) { services.clear(); } cachedSecureRandomService = null; for (Provider p : providers) { initServiceInfo(p); } needRefresh = false; } return cacheVersion; } }
/** * Returns the current cache version. This has the possible side * effect of updating the cache if needed. */ public static synchronized int getCacheVersion() { if (needRefresh) { cacheVersion++; synchronized (services) { services.clear(); } cachedSecureRandomService = null; for (Provider p : providers) { initServiceInfo(p); } needRefresh = false; } return cacheVersion; } }