mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix
This commit is contained in:
@@ -107,7 +107,7 @@ public final class CsvRow implements List<String> {
|
||||
* @since 5.3.6
|
||||
*/
|
||||
public <T> T toBean(final Class<T> clazz){
|
||||
return BeanUtil.toBean(getFieldMap(), clazz, CopyOptions.create().setIgnoreError(true));
|
||||
return BeanUtil.toBean(getFieldMap(), clazz, CopyOptions.of().setIgnoreError(true));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -42,7 +42,7 @@ public class BeanSheetReader<T> implements SheetReader<List<T>> {
|
||||
}
|
||||
|
||||
final List<T> beanList = new ArrayList<>(mapList.size());
|
||||
final CopyOptions copyOptions = CopyOptions.create().setIgnoreError(true);
|
||||
final CopyOptions copyOptions = CopyOptions.of().setIgnoreError(true);
|
||||
for (final Map<String, Object> map : mapList) {
|
||||
beanList.add(BeanUtil.toBean(map, this.beanClass, copyOptions));
|
||||
}
|
||||
|
Reference in New Issue
Block a user