-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,10 +215,6 @@ private CacheProxy<K, V> newCacheProxy() { | |
/** Creates a cache that reads through on a cache miss. */ | ||
private CacheProxy<K, V> newLoadingCacheProxy() { | ||
var factory = config.getCacheLoaderFactory(); | ||
if (factory == null) { | ||
throw new IllegalStateException(); | ||
} | ||
|
||
CacheLoader<K, V> cacheLoader = factory.create(); | ||
Check warning on line 218 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheFactory.java GitHub Actions / spotbugs
Check warning on line 218 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheFactory.java GitHub Actions / Compile (GraalVM)
Check warning on line 218 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheFactory.java GitHub Actions / Compile (23)
Check warning on line 218 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheFactory.java GitHub Actions / Compile (11)
Check warning on line 218 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheFactory.java GitHub Actions / forbiddenApis
Check warning on line 218 in jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheFactory.java GitHub Actions / pmd
|
||
var adapter = new JCacheLoaderAdapter<>( | ||
cacheLoader, dispatcher, expiryPolicy, ticker, statistics); | ||
|