From 3059cf868366e46d32ed21e06c07f98607190834 Mon Sep 17 00:00:00 2001 From: lixiaoshuang <644968328@qq.com> Date: Mon, 29 Nov 2021 22:51:29 +0800 Subject: [PATCH] replace with <> --- .../alibaba/nacos/client/naming/cache/ServiceInfoHolder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/naming/cache/ServiceInfoHolder.java b/client/src/main/java/com/alibaba/nacos/client/naming/cache/ServiceInfoHolder.java index ee9c40ac5..03a89e34a 100644 --- a/client/src/main/java/com/alibaba/nacos/client/naming/cache/ServiceInfoHolder.java +++ b/client/src/main/java/com/alibaba/nacos/client/naming/cache/ServiceInfoHolder.java @@ -69,9 +69,9 @@ public class ServiceInfoHolder implements Closeable { public ServiceInfoHolder(String namespace, Properties properties) { initCacheDir(namespace, properties); if (isLoadCacheAtStart(properties)) { - this.serviceInfoMap = new ConcurrentHashMap(DiskCache.read(this.cacheDir)); + this.serviceInfoMap = new ConcurrentHashMap<>(DiskCache.read(this.cacheDir)); } else { - this.serviceInfoMap = new ConcurrentHashMap(16); + this.serviceInfoMap = new ConcurrentHashMap<>(16); } this.failoverReactor = new FailoverReactor(this, cacheDir); this.pushEmptyProtection = isPushEmptyProtect(properties);