mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-06 21:58:03 +08:00
Merge pull request #2869 from zhaomoran/v5-master
修改注释:通过key获取的始终是同一对象和参数无关
This commit is contained in:
commit
a15cb6fed5
@ -42,7 +42,6 @@ public final class Singleton {
|
||||
/**
|
||||
* 获得指定类的单例对象<br>
|
||||
* 对象存在于池中返回,否则创建,每次调用此方法获得的对象为同一个对象<br>
|
||||
* 注意:单例针对的是类和参数,也就是说只有类、参数一致才会返回同一个对象
|
||||
*
|
||||
* @param <T> 单例对象类型
|
||||
* @param key 自定义键
|
||||
|
Loading…
Reference in New Issue
Block a user