mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复问题 more than 3 if/for/while/switch/try
This commit is contained in:
parent
b32865ad65
commit
b923783b34
@ -886,7 +886,9 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
if (row.getLastCellNum() != 0) {
|
||||
for (int i = 0; i < this.workbook.getSpreadsheetVersion().getMaxColumns(); i++) {
|
||||
Cell cell = row.getCell(i);
|
||||
if (cell == null) {
|
||||
if (cell != null) {
|
||||
continue;
|
||||
}
|
||||
if (iterator.hasNext()) {
|
||||
cell = row.createCell(i);
|
||||
CellUtil.setCellValue(cell, iterator.next(), this.styleSet, true);
|
||||
@ -894,7 +896,6 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
writeHeadRow(rowData);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user