mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-04 04:37:59 +08:00
fix bug
This commit is contained in:
parent
fddb24dc9b
commit
85bc21b6c1
@ -10,6 +10,7 @@
|
|||||||
*
|
*
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复CollUtil.isEqualList两个null返回错误问题(issue#1885@Github)
|
* 【core 】 修复CollUtil.isEqualList两个null返回错误问题(issue#1885@Github)
|
||||||
|
* 【poi 】 修复ExcelWriter多余调试信息导致的问题(issue#1884@Github)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@ import cn.hutool.core.io.FileUtil;
|
|||||||
import cn.hutool.core.io.IORuntimeException;
|
import cn.hutool.core.io.IORuntimeException;
|
||||||
import cn.hutool.core.io.IoUtil;
|
import cn.hutool.core.io.IoUtil;
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
import cn.hutool.core.lang.Console;
|
|
||||||
import cn.hutool.core.map.MapUtil;
|
import cn.hutool.core.map.MapUtil;
|
||||||
import cn.hutool.core.util.CharsetUtil;
|
import cn.hutool.core.util.CharsetUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
import cn.hutool.core.util.IdUtil;
|
||||||
@ -765,7 +764,6 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
|||||||
if (null != content) {
|
if (null != content) {
|
||||||
final Cell cell = getOrCreateCell(firstColumn, firstRow);
|
final Cell cell = getOrCreateCell(firstColumn, firstRow);
|
||||||
CellUtil.setCellValue(cell, content, cellStyle);
|
CellUtil.setCellValue(cell, content, cellStyle);
|
||||||
Console.log("{} {} {}", firstColumn, firstRow, cell.getStringCellValue());
|
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -783,4 +783,15 @@ public class ExcelWriteTest {
|
|||||||
writer.write(ListUtil.of(hyperlink));
|
writer.write(ListUtil.of(hyperlink));
|
||||||
writer.close();
|
writer.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void mergeNumberTest(){
|
||||||
|
File tempFile=new File("d:/test/mergeNumber.xlsx");
|
||||||
|
FileUtil.del(tempFile);
|
||||||
|
|
||||||
|
BigExcelWriter writer= new BigExcelWriter(tempFile);
|
||||||
|
writer.merge(0,1,2,2,3.99,false);
|
||||||
|
writer.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user