mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
!1046 修复issues:I7PHNT( JDK17下,PinyinUtil的 debug日志报错问题)
Merge pull request !1046 from 三斤/v6-dev
This commit is contained in:
commit
0ffaf47952
@ -32,7 +32,9 @@ public class PinyinEngineFactory {
|
||||
* @return 单例的PinyinEngine
|
||||
*/
|
||||
public static PinyinEngine getEngine(){
|
||||
return 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"));
|
||||
return engine;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -42,9 +44,7 @@ public class PinyinEngineFactory {
|
||||
* @return {@link PinyinEngine}
|
||||
*/
|
||||
public static PinyinEngine createEngine() {
|
||||
final PinyinEngine engine = doCreateEngine();
|
||||
LogUtil.debug("Use [{}] Engine As Default.", StrUtil.removeSuffix(engine.getClass().getSimpleName(), "Engine"));
|
||||
return engine;
|
||||
return doCreateEngine();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user