From 9b077d4656b6b33c9eb9dc857c43f26ef7a9d693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B1=9F=E5=AF=8C?= <55344330+MRGUOKING@users.noreply.github.com> Date: Tue, 7 Jun 2022 15:35:03 +0800 Subject: [PATCH] For #8479, Fix the problem that some singleton classes construction method not private (#8508) --- .../alibaba/nacos/plugin/auth/spi/server/AuthPluginManager.java | 2 +- .../nacos/plugin/encryption/EncryptionPluginManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/auth/src/main/java/com/alibaba/nacos/plugin/auth/spi/server/AuthPluginManager.java b/plugin/auth/src/main/java/com/alibaba/nacos/plugin/auth/spi/server/AuthPluginManager.java index 6e6a5530b..a714d88a0 100644 --- a/plugin/auth/src/main/java/com/alibaba/nacos/plugin/auth/spi/server/AuthPluginManager.java +++ b/plugin/auth/src/main/java/com/alibaba/nacos/plugin/auth/spi/server/AuthPluginManager.java @@ -43,7 +43,7 @@ public class AuthPluginManager { */ private final Map authServiceMap = new HashMap<>(); - public AuthPluginManager() { + private AuthPluginManager() { initAuthServices(); } diff --git a/plugin/encryption/src/main/java/com/alibaba/nacos/plugin/encryption/EncryptionPluginManager.java b/plugin/encryption/src/main/java/com/alibaba/nacos/plugin/encryption/EncryptionPluginManager.java index f839796cd..1bd80175e 100644 --- a/plugin/encryption/src/main/java/com/alibaba/nacos/plugin/encryption/EncryptionPluginManager.java +++ b/plugin/encryption/src/main/java/com/alibaba/nacos/plugin/encryption/EncryptionPluginManager.java @@ -41,7 +41,7 @@ public class EncryptionPluginManager { private static final EncryptionPluginManager INSTANCE = new EncryptionPluginManager(); - public EncryptionPluginManager() { + private EncryptionPluginManager() { loadInitial(); }