Skip to content

Commit

Permalink
Upgrade apache poi to 5.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiRajAnand committed Aug 29, 2024
1 parent ba0b36e commit 67e94a4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private void processSheet( Sheet sheet,
mergedColStart = cell.getColumnIndex();
}

switch ( cell.getCellTypeEnum() ) {
switch ( cell.getCellType() ) {
case BOOLEAN:
newCell(listeners,
i,
Expand Down Expand Up @@ -257,7 +257,7 @@ private boolean isGeneralFormat(Cell cell) {
}

private String getFormulaValue( DataFormatter formatter, FormulaEvaluator formulaEvaluator, Cell cell ) {
if ( formulaEvaluator.evaluate( cell ).getCellTypeEnum() == CellType.BOOLEAN ) {
if ( formulaEvaluator.evaluate( cell ).getCellType() == CellType.BOOLEAN ) {
return cell.getBooleanCellValue() ? "true" : "false";
}
return formatter.formatCellValue(cell, formulaEvaluator);
Expand All @@ -266,7 +266,7 @@ private String getFormulaValue( DataFormatter formatter, FormulaEvaluator formul
private String tryToReadCachedValue( Cell cell ) {
DataFormatter formatter = new DataFormatter( Locale.ENGLISH );
String cachedValue;
switch ( cell.getCachedFormulaResultTypeEnum() ) {
switch ( cell.getCachedFormulaResultType() ) {
case NUMERIC:
double num = cell.getNumericCellValue();
if ( num - Math.round( num ) != 0 ) {
Expand Down Expand Up @@ -296,7 +296,7 @@ private String tryToReadCachedValue( Cell cell ) {
}

private String getCellValue( final CellValue cv ) {
switch ( cv.getCellTypeEnum() ) {
switch ( cv.getCellType() ) {
case BOOLEAN:
return Boolean.toString( cv.getBooleanValue() );
case NUMERIC:
Expand Down

0 comments on commit 67e94a4

Please sign in to comment.