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 de884cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package org.drools.scorecards.parser.xls;

import org.apache.poi.hssf.util.CellReference;
import org.apache.poi.ss.util.CellReference;
import org.dmg.pmml.pmml_4_2.descr.*;
import org.drools.core.util.StringUtils;
import org.kie.pmml.pmml_4_2.extensions.PMMLExtensionNames;
Expand Down

0 comments on commit de884cc

Please # to comment.