mirror of https://github.com/apache/lucene.git
SOLR-13650: compile error fixed
This commit is contained in:
parent
a4b0ab530f
commit
ca4fc9b912
|
@ -110,7 +110,7 @@ public class CacheConfig implements MapWriter {
|
|||
|
||||
|
||||
public <K, V> SolrCacheHolder<K, V> newInstance(SolrCore core) {
|
||||
return new SolrCacheHolder<>(new CacheInfo(this, core));
|
||||
return new SolrCacheHolder(new CacheInfo(this, core));
|
||||
}
|
||||
|
||||
static class CacheInfo {
|
||||
|
|
|
@ -30,12 +30,14 @@ public class SolrCacheHolder<K, V> implements SolrCache<K,V> {
|
|||
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||
|
||||
|
||||
private final CacheConfig factory;
|
||||
private CacheConfig.CacheInfo info;
|
||||
protected volatile SolrCache<K, V> delegate;
|
||||
|
||||
public SolrCacheHolder(SolrCache<K, V> delegate, CacheConfig factory) {
|
||||
this.delegate = delegate;
|
||||
this.factory = factory;
|
||||
|
||||
|
||||
public SolrCacheHolder(CacheConfig.CacheInfo cacheInfo) {
|
||||
this.info = cacheInfo;
|
||||
this.delegate = cacheInfo.cache;
|
||||
}
|
||||
|
||||
public int size() {
|
||||
|
|
Loading…
Reference in New Issue