mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-01 04:47:26 +00:00
[Change] Core 修复代码规范上的问题;
[Change] CacheStoreBuilder 调整 loadFactory 中 ServiceLoader 类型变量的命名(FACTORY_LOADER -> factoryLoader);
This commit is contained in:
@ -52,9 +52,9 @@ public class CacheStoreBuilder {
|
|||||||
if (FACTORY_LIST.size() != 0) {
|
if (FACTORY_LIST.size() != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final ServiceLoader<CacheStoreFactory> FACTORY_LOADER = ServiceLoader.load(CacheStoreFactory.class);
|
final ServiceLoader<CacheStoreFactory> factoryLoader = ServiceLoader.load(CacheStoreFactory.class);
|
||||||
try {
|
try {
|
||||||
for (CacheStoreFactory factory : FACTORY_LOADER) {
|
for (CacheStoreFactory factory : factoryLoader) {
|
||||||
FactoryInfo info;
|
FactoryInfo info;
|
||||||
try {
|
try {
|
||||||
info = new FactoryInfo(factory.getClass());
|
info = new FactoryInfo(factory.getClass());
|
||||||
|
Reference in New Issue
Block a user