Browse Source

fix comment typo like #1971

developing
lethal233 3 years ago
parent
commit
ac79beaf6f
  1. 14
      src/main/java/com/alibaba/excel/analysis/v07/handlers/CellTagHandler.java
  2. 2
      src/main/java/com/alibaba/excel/write/metadata/holder/WriteSheetHolder.java

14
src/main/java/com/alibaba/excel/analysis/v07/handlers/CellTagHandler.java

@ -27,13 +27,13 @@ public class CellTagHandler extends AbstractXlsxTagHandler {
xlsxReadSheetHolder.setColumnIndex(PositionUtils.getCol(attributes.getValue(ExcelXmlConstants.ATTRIBUTE_R),
xlsxReadSheetHolder.getColumnIndex()));
// t="s" ,it's means String
// t="str" ,it's means String,but does not need to be read in the 'sharedStrings.xml'
// t="inlineStr" ,it's means String
// t="b" ,it's means Boolean
// t="e" ,it's means Error
// t="n" ,it's means Number
// t is null ,it's means Empty or Number
// t="s", it means String
// t="str", it means String, but does not need to be read in the 'sharedStrings.xml'
// t="inlineStr", it means String
// t="b", it means Boolean
// t="e", it means Error
// t="n", it means Number
// t is null, it means Empty or Number
CellDataTypeEnum type = CellDataTypeEnum.buildFromCellType(attributes.getValue(ExcelXmlConstants.ATTRIBUTE_T));
xlsxReadSheetHolder.setTempCellData(new CellData(type));
xlsxReadSheetHolder.setTempData(new StringBuilder());

2
src/main/java/com/alibaba/excel/write/metadata/holder/WriteSheetHolder.java

@ -153,7 +153,7 @@ public class WriteSheetHolder extends AbstractWriteHolder {
* @return
*/
public int getNewRowIndexAndStartDoWrite() {
// 'getLastRowNum' doesn't matter if it has one or zero,is's zero
// 'getLastRowNum' doesn't matter if it has one or zero, it's zero
int newRowIndex = 0;
switch (writeLastRowTypeEnum) {
case TEMPLATE_EMPTY:

Loading…
Cancel
Save