mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] Core 修复代码规范上的问题;
[Change] CacheStoreBuilder 调整 loadFactory 中 ServiceLoader 类型变量的命名(FACTORY_LOADER -> factoryLoader);
This commit is contained in:
parent
8e5df3b5ae
commit
4812eec2d7
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user