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 30, 2024
1 parent 9f8a656 commit 1e1c30d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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 Expand Up @@ -52,7 +52,7 @@ public Scorecard getScorecard() {

private void fulfillExpectation(int currentRowCtr, int currentColCtr, Object cellValue, Class expectedClass) throws ScorecardParseException {
List<DataExpectation> dataExpectations = resolveExpectations(currentRowCtr, currentColCtr);
CellReference cellRef = new CellReference(currentRowCtr, currentColCtr);
CellReference cellRef = new CellReference(currentRowCtr, currentColCtr,true,true);
Method method = null;
for (DataExpectation dataExpectation : dataExpectations) {
try {
Expand Down

0 comments on commit 1e1c30d

Please sign in to comment.