From 4812eec2d7b626d1ea4e8e328a40078b674214ba Mon Sep 17 00:00:00 2001 From: LamGC Date: Wed, 23 Sep 2020 13:51:25 +0800 Subject: [PATCH] =?UTF-8?q?[Change]=20Core=20=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=A7=84=E8=8C=83=E4=B8=8A=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Change] CacheStoreBuilder 调整 loadFactory 中 ServiceLoader 类型变量的命名(FACTORY_LOADER -> factoryLoader); --- .../main/java/net/lamgc/cgj/bot/cache/CacheStoreBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ContentGrabbingJi-core/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreBuilder.java b/ContentGrabbingJi-core/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreBuilder.java index af82ad7..4f4a516 100644 --- a/ContentGrabbingJi-core/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreBuilder.java +++ b/ContentGrabbingJi-core/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreBuilder.java @@ -52,9 +52,9 @@ public class CacheStoreBuilder { if (FACTORY_LIST.size() != 0) { return; } - final ServiceLoader FACTORY_LOADER = ServiceLoader.load(CacheStoreFactory.class); + final ServiceLoader factoryLoader = ServiceLoader.load(CacheStoreFactory.class); try { - for (CacheStoreFactory factory : FACTORY_LOADER) { + for (CacheStoreFactory factory : factoryLoader) { FactoryInfo info; try { info = new FactoryInfo(factory.getClass());