mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-08 16:57:09 +08:00
refactor: 使用 CollUtils 替代部分 Stream 集合转换
This commit is contained in:
@@ -45,7 +45,7 @@ public class ReflectUtils {
|
||||
*/
|
||||
public static List<String> getNonStaticFieldsName(Class<?> beanClass) throws SecurityException {
|
||||
List<Field> nonStaticFields = getNonStaticFields(beanClass);
|
||||
return nonStaticFields.stream().map(Field::getName).collect(Collectors.toList());
|
||||
return CollUtils.mapToList(nonStaticFields, Field::getName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user