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