mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
gts
This commit is contained in:
parent
2a602d0bd4
commit
41141cd824
@ -20,6 +20,7 @@
|
|||||||
* 【core 】 修复`LunarFestival`中重复节日问题(issue#ICC8X3@Gitee)
|
* 【core 】 修复`LunarFestival`中重复节日问题(issue#ICC8X3@Gitee)
|
||||||
* 【core 】 修复`ThreadUtil`中中断异常处理丢失中断信息的问题,解决ConcurrencyTester资源未释放的问题(pr#1358@Gitee)
|
* 【core 】 修复`ThreadUtil`中中断异常处理丢失中断信息的问题,解决ConcurrencyTester资源未释放的问题(pr#1358@Gitee)
|
||||||
* 【core 】 修复`TEL_400_800`正则规则太窄问题(issue#3967@Github)
|
* 【core 】 修复`TEL_400_800`正则规则太窄问题(issue#3967@Github)
|
||||||
|
* 【core 】 修复`ClassUti`isNormalClass判断未排除String问题(issue#3965@Github)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.38(2025-05-13)
|
# 5.8.38(2025-05-13)
|
||||||
|
@ -917,7 +917,9 @@ public class ClassUtil {
|
|||||||
&& false == clazz.isArray() //
|
&& false == clazz.isArray() //
|
||||||
&& false == clazz.isAnnotation() //
|
&& false == clazz.isAnnotation() //
|
||||||
&& false == clazz.isSynthetic() //
|
&& false == clazz.isSynthetic() //
|
||||||
&& false == clazz.isPrimitive();//
|
&& false == clazz.isPrimitive()//
|
||||||
|
// issue#3965 String有isEmpty方法,但是不能被当作bean
|
||||||
|
&& clazz != String.class;//
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
package cn.hutool.poi.excel;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.ListUtil;
|
||||||
|
import cn.hutool.core.io.FileUtil;
|
||||||
|
import org.junit.jupiter.api.Disabled;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class Issue3965Test {
|
||||||
|
@Test
|
||||||
|
@Disabled
|
||||||
|
void writeTest() {
|
||||||
|
ArrayList<List<String>> arrayList = new ArrayList<>();
|
||||||
|
|
||||||
|
arrayList.add(ListUtil.of("a"));
|
||||||
|
arrayList.add(ListUtil.of("b"));
|
||||||
|
arrayList.add(ListUtil.of("c"));
|
||||||
|
arrayList.add(ListUtil.of("d"));
|
||||||
|
|
||||||
|
ExcelWriter writer = ExcelUtil.getWriter(FileUtil.file("d:/test/123.xlsx"));
|
||||||
|
writer.setColumnWidth(0, 50);
|
||||||
|
writer.write(arrayList);
|
||||||
|
writer.flush();
|
||||||
|
writer.close();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user