v 5.2.6
This commit is contained in:
+4
-2
@@ -16,16 +16,18 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile Jackson3ApiJavaHelper.java
|
||||
* LastUpdate 2026-02-26 12:02:13
|
||||
* LastUpdate 2026-03-18 08:32:31
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
|
||||
package com.mingliqiye.utils.json;
|
||||
package com.mingliqiye.utils.json.api;
|
||||
|
||||
import tools.jackson.databind.ObjectMapper;
|
||||
import tools.jackson.databind.cfg.MapperBuilder;
|
||||
|
||||
|
||||
public class Jackson3ApiJavaHelper {
|
||||
@SuppressWarnings("rawtypes")
|
||||
static MapperBuilder rebuild(ObjectMapper objectMapper) {
|
||||
return objectMapper.rebuild();
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile SuperStream.java
|
||||
* LastUpdate 2026-01-20 13:27:09
|
||||
* LastUpdate 2026-04-14 12:00:05
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
|
||||
@@ -696,7 +696,7 @@ public class SuperStream<T> implements Stream<T> {
|
||||
* @param <T> 输入元素的类型
|
||||
* @return 产生List的收集器
|
||||
*/
|
||||
public static <T> Collector<T, ?, List<T>> toList() {
|
||||
public static <T> Collector<T, ?, List<T>> toListCollector() {
|
||||
return Collectors.toList();
|
||||
}
|
||||
|
||||
@@ -1219,7 +1219,7 @@ public class SuperStream<T> implements Stream<T> {
|
||||
* @return 包含流中所有元素的List
|
||||
*/
|
||||
public List<T> toAList() {
|
||||
return collect(toList());
|
||||
return collect(toListCollector());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user