Merge pull request #7311 from li-xiao-shuang/feature_7310
[ISSUE #7310] replace with <>
This commit is contained in:
commit
4c27c03052
@ -69,9 +69,9 @@ public class ServiceInfoHolder implements Closeable {
|
|||||||
public ServiceInfoHolder(String namespace, Properties properties) {
|
public ServiceInfoHolder(String namespace, Properties properties) {
|
||||||
initCacheDir(namespace, properties);
|
initCacheDir(namespace, properties);
|
||||||
if (isLoadCacheAtStart(properties)) {
|
if (isLoadCacheAtStart(properties)) {
|
||||||
this.serviceInfoMap = new ConcurrentHashMap<String, ServiceInfo>(DiskCache.read(this.cacheDir));
|
this.serviceInfoMap = new ConcurrentHashMap<>(DiskCache.read(this.cacheDir));
|
||||||
} else {
|
} else {
|
||||||
this.serviceInfoMap = new ConcurrentHashMap<String, ServiceInfo>(16);
|
this.serviceInfoMap = new ConcurrentHashMap<>(16);
|
||||||
}
|
}
|
||||||
this.failoverReactor = new FailoverReactor(this, cacheDir);
|
this.failoverReactor = new FailoverReactor(this, cacheDir);
|
||||||
this.pushEmptyProtection = isPushEmptyProtect(properties);
|
this.pushEmptyProtection = isPushEmptyProtect(properties);
|
||||||
|
Loading…
Reference in New Issue
Block a user