Skip to content

Commit

Permalink
fix:更新备注,格式化代码以保证代码规范.
Browse files Browse the repository at this point in the history
  • Loading branch information
psxjoy committed Jul 4, 2024
1 parent f1f5f05 commit 52ed818
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ public void characters(char[] ch, int start, int length) throws SAXException {
if (handler == null || !handler.support(xlsxReadContext)) {
return;
}
//If the cell type is 'inLineStr', then only the content of the label <t> is read
//If the cell type is 'inLineStr', then the label <v> must be ignored
if (xlsxReadContext.xlsxReadSheetHolder().getTempCellData() != null
&& CellDataTypeEnum.DIRECT_STRING.equals(xlsxReadContext.xlsxReadSheetHolder().getTempCellData().getType())
&& "v".equals(currentTag)) {
&& ExcelXmlConstants.CELL_VALUE_TAG.equals(currentTag)) {
return;
}
handler.characters(xlsxReadContext, ch, start, length);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,23 @@
import java.io.File;

public class Issue3823Test {




//Issue link: https://github.com/alibaba/easyexcel/issues/3823
@Test
public void test() throws Exception {
public void IssueTest() throws Exception {

String fileName = TestFileUtil.getPath() + "temp" + File.separator + "issue3823" + File.separator + "bug.xlsx";

EasyExcel.read(fileName, new ReadListener() {
@Override
public void invoke(Object data, AnalysisContext context) {
System.out.println(JSON.toJSONString(data));
}
@Override
public void invoke(Object data, AnalysisContext context) {
System.out.println(JSON.toJSONString(data));
}

@Override
public void doAfterAllAnalysed(AnalysisContext context) {
@Override
public void doAfterAllAnalysed(AnalysisContext context) {

}
}).sheet().doRead();
}
}).sheet().doRead();


XSSFWorkbook workbook = new XSSFWorkbook(fileName);
Expand Down

0 comments on commit 52ed818

Please sign in to comment.