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