Browse Source

修改读取07注释的写法

developing
Jiaju Zhuang 3 years ago
parent
commit
5aede698ea
  1. 4
      src/main/java/com/alibaba/excel/analysis/v07/XlsxSaxAnalyser.java

4
src/main/java/com/alibaba/excel/analysis/v07/XlsxSaxAnalyser.java

@ -233,8 +233,8 @@ public class XlsxSaxAnalyser implements ExcelReadExecutor {
return;
}
Iterator<CellAddress> cellAddresses = commentsTable.getCellAddresses();
for (Iterator<CellAddress> it = cellAddresses; it.hasNext(); ) {
CellAddress cellAddress = it.next();
while (cellAddresses.hasNext()) {
CellAddress cellAddress = cellAddresses.next();
XSSFComment cellComment = commentsTable.findCellComment(cellAddress);
CellExtra cellExtra = new CellExtra(CellExtraTypeEnum.COMMENT, cellComment.getString().toString(),
cellAddress.getRow(), cellAddress.getColumn());

Loading…
Cancel
Save