From c2b047b0e5b8dd634e6ff23b2edaf9887bc97035 Mon Sep 17 00:00:00 2001 From: hiparker Date: Sat, 8 May 2021 10:09:53 +0800 Subject: [PATCH] =?UTF-8?q?OSS=20Factory=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/opsli/plugins/oss/OssStorageFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/plugins/oss/OssStorageFactory.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/plugins/oss/OssStorageFactory.java index a5c49f4..a051604 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/plugins/oss/OssStorageFactory.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/plugins/oss/OssStorageFactory.java @@ -42,7 +42,7 @@ public enum OssStorageFactory { INSTANCE; /** OSS 服务容器 */ - private final Map ossStorageServiceMap = Maps.newHashMap(); + private final Map ossStorageServiceMap; /** * 获得OSS 执行类 @@ -79,8 +79,8 @@ public enum OssStorageFactory { * 初始化 */ OssStorageFactory(){ - // 清空执行器集合 - ossStorageServiceMap.clear(); + // 初始化容器 + ossStorageServiceMap = Maps.newHashMap(); // 拿到实现了 OssStorageService 接口的,所有子类 Set> clazzSet = ClassUtil.scanPackageBySuper(