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