diff --git a/common/src/main/java/com/alibaba/nacos/common/cache/impl/SimpleCache.java b/common/src/main/java/com/alibaba/nacos/common/cache/impl/SimpleCache.java index 188e2ebdff4..29775d87e77 100644 --- a/common/src/main/java/com/alibaba/nacos/common/cache/impl/SimpleCache.java +++ b/common/src/main/java/com/alibaba/nacos/common/cache/impl/SimpleCache.java @@ -32,7 +32,7 @@ public class SimpleCache implements Cache { private Map cache; public SimpleCache(int size) { - cache = new HashMap(size); + cache = new HashMap<>(size); } @Override