Skip to content

Commit a15cb6f

Browse files
authored
Merge pull request #2869 from zhaomoran/v5-master
修改注释:通过key获取的始终是同一对象和参数无关
2 parents 771f0a4 + baa782e commit a15cb6f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

hutool-core/src/main/java/cn/hutool/core/lang/Singleton.java

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public static <T> T get(Class<T> clazz, Object... params) {
4242
/**
4343
* 获得指定类的单例对象<br>
4444
* 对象存在于池中返回,否则创建,每次调用此方法获得的对象为同一个对象<br>
45-
* 注意:单例针对的是类和参数,也就是说只有类、参数一致才会返回同一个对象
4645
*
4746
* @param <T> 单例对象类型
4847
* @param key 自定义键

0 commit comments

Comments
 (0)