mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix cide
This commit is contained in:
parent
0ffaf47952
commit
8ff4e14e1d
@ -14,6 +14,8 @@ package org.dromara.hutool.extra.aop.engine;
|
|||||||
|
|
||||||
import org.dromara.hutool.core.lang.Singleton;
|
import org.dromara.hutool.core.lang.Singleton;
|
||||||
import org.dromara.hutool.core.spi.SpiUtil;
|
import org.dromara.hutool.core.spi.SpiUtil;
|
||||||
|
import org.dromara.hutool.core.text.StrUtil;
|
||||||
|
import org.dromara.hutool.log.LogUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代理引擎简单工厂<br>
|
* 代理引擎简单工厂<br>
|
||||||
@ -29,7 +31,9 @@ public class ProxyEngineFactory {
|
|||||||
* @return 单例的ProxyEngine
|
* @return 单例的ProxyEngine
|
||||||
*/
|
*/
|
||||||
public static ProxyEngine getEngine() {
|
public static ProxyEngine getEngine() {
|
||||||
return Singleton.get(ProxyEngine.class.getName(), ProxyEngineFactory::createEngine);
|
final ProxyEngine engine = Singleton.get(ProxyEngine.class.getName(), ProxyEngineFactory::createEngine);
|
||||||
|
LogUtil.debug("Use [{}] Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
||||||
|
return engine;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,7 +33,7 @@ public class PinyinEngineFactory {
|
|||||||
*/
|
*/
|
||||||
public static PinyinEngine getEngine(){
|
public static PinyinEngine getEngine(){
|
||||||
final PinyinEngine engine = Singleton.get(PinyinEngine.class.getName(), PinyinEngineFactory::createEngine);
|
final PinyinEngine engine = Singleton.get(PinyinEngine.class.getName(), PinyinEngineFactory::createEngine);
|
||||||
LogUtil.debug("Use [{}] Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
LogUtil.debug("Use [{}] Pinyin Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
||||||
return engine;
|
return engine;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,9 @@ public class TemplateEngineFactory {
|
|||||||
* @return 单例的TemplateEngine
|
* @return 单例的TemplateEngine
|
||||||
*/
|
*/
|
||||||
public static TemplateEngine getEngine() {
|
public static TemplateEngine getEngine() {
|
||||||
return Singleton.get(TemplateEngine.class.getName(), TemplateEngineFactory::createEngine);
|
final TemplateEngine engine = Singleton.get(TemplateEngine.class.getName(), TemplateEngineFactory::createEngine);
|
||||||
|
LogUtil.debug("Use [{}] Template Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
||||||
|
return engine;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,9 +59,7 @@ public class TemplateEngineFactory {
|
|||||||
* @return {@link TemplateEngine}
|
* @return {@link TemplateEngine}
|
||||||
*/
|
*/
|
||||||
public static TemplateEngine createEngine(final TemplateConfig config) {
|
public static TemplateEngine createEngine(final TemplateConfig config) {
|
||||||
final TemplateEngine engine = doCreateEngine(config);
|
return doCreateEngine(config);
|
||||||
LogUtil.debug("Use [{}] Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
|
||||||
return engine;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,7 +32,9 @@ public class TokenizerEngineFactory {
|
|||||||
* @return 单例的TokenizerEngine
|
* @return 单例的TokenizerEngine
|
||||||
*/
|
*/
|
||||||
public static TokenizerEngine getEngine(){
|
public static TokenizerEngine getEngine(){
|
||||||
return Singleton.get(TokenizerEngine.class.getName(), TokenizerEngineFactory::createEngine);
|
final TokenizerEngine engine = Singleton.get(TokenizerEngine.class.getName(), TokenizerEngineFactory::createEngine);
|
||||||
|
LogUtil.debug("Use [{}] Tokenizer Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
||||||
|
return engine;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -41,9 +43,7 @@ public class TokenizerEngineFactory {
|
|||||||
* @return {@link TokenizerEngine}
|
* @return {@link TokenizerEngine}
|
||||||
*/
|
*/
|
||||||
public static TokenizerEngine createEngine() {
|
public static TokenizerEngine createEngine() {
|
||||||
final TokenizerEngine engine = doCreateEngine();
|
return doCreateEngine();
|
||||||
LogUtil.debug("Use [{}] Tokenizer Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
|
||||||
return engine;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user