[Change] Core 修复代码规范上的问题;

[Change] CacheStoreBuilder 调整 loadFactory 中 ServiceLoader 类型变量的命名(FACTORY_LOADER -> factoryLoader);
This commit is contained in:
LamGC 2020-09-23 13:51:25 +08:00
parent 8e5df3b5ae
commit 4812eec2d7
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -52,9 +52,9 @@ public class CacheStoreBuilder {
if (FACTORY_LIST.size() != 0) {
return;
}
final ServiceLoader<CacheStoreFactory> FACTORY_LOADER = ServiceLoader.load(CacheStoreFactory.class);
final ServiceLoader<CacheStoreFactory> factoryLoader = ServiceLoader.load(CacheStoreFactory.class);
try {
for (CacheStoreFactory factory : FACTORY_LOADER) {
for (CacheStoreFactory factory : factoryLoader) {
FactoryInfo info;
try {
info = new FactoryInfo(factory.getClass());