From b7416f20e6065708d8ab84ab1a3fe61682d29974 Mon Sep 17 00:00:00 2001 From: Peng Junzhi <201250214@smail.nju.edu.cn> Date: Mon, 29 Jan 2024 23:00:12 +0800 Subject: [PATCH] fix: singleton constructor --- .../java/org/apache/hugegraph/backend/cache/CacheManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java index dd1b4f9b5f..afe540d2f1 100644 --- a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java +++ b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CacheManager.java @@ -56,7 +56,7 @@ public static boolean cacheEnableMetrics(String name, boolean enabled) { return cache.enableMetrics(enabled); } - public CacheManager() { + private CacheManager() { this.caches = new ConcurrentHashMap<>(); this.timer = new Timer("cache-expirer", true);