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(); }