From 2af4c4033015b4a8c758236fc7f71f39e6f99f27 Mon Sep 17 00:00:00 2001 From: "water.lyl" Date: Thu, 14 May 2020 18:20:40 +0800 Subject: [PATCH] fix pmd problem --- .../com/alibaba/nacos/core/controller/CoreOpsController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/alibaba/nacos/core/controller/CoreOpsController.java b/core/src/main/java/com/alibaba/nacos/core/controller/CoreOpsController.java index cb2dbb430..8e76d94c6 100644 --- a/core/src/main/java/com/alibaba/nacos/core/controller/CoreOpsController.java +++ b/core/src/main/java/com/alibaba/nacos/core/controller/CoreOpsController.java @@ -62,7 +62,7 @@ public class CoreOpsController { @GetMapping(value = "/idInfo") public RestResult>> idInfo() { - Map> info = new HashMap<>(); + Map> info = new HashMap<>(10); idGeneratorManager.getGeneratorMap() .forEach( (resource, idGenerator) -> info.put(resource, idGenerator.info()));