Skip to content

Commit 1e1c30d

Browse files
committed
Upgrade apache poi to 5.2.5
1 parent 9f8a656 commit 1e1c30d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/ExcelParser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private void processSheet( Sheet sheet,
181181
mergedColStart = cell.getColumnIndex();
182182
}
183183

184-
switch ( cell.getCellTypeEnum() ) {
184+
switch ( cell.getCellType() ) {
185185
case BOOLEAN:
186186
newCell(listeners,
187187
i,
@@ -257,7 +257,7 @@ private boolean isGeneralFormat(Cell cell) {
257257
}
258258

259259
private String getFormulaValue( DataFormatter formatter, FormulaEvaluator formulaEvaluator, Cell cell ) {
260-
if ( formulaEvaluator.evaluate( cell ).getCellTypeEnum() == CellType.BOOLEAN ) {
260+
if ( formulaEvaluator.evaluate( cell ).getCellType() == CellType.BOOLEAN ) {
261261
return cell.getBooleanCellValue() ? "true" : "false";
262262
}
263263
return formatter.formatCellValue(cell, formulaEvaluator);
@@ -266,7 +266,7 @@ private String getFormulaValue( DataFormatter formatter, FormulaEvaluator formul
266266
private String tryToReadCachedValue( Cell cell ) {
267267
DataFormatter formatter = new DataFormatter( Locale.ENGLISH );
268268
String cachedValue;
269-
switch ( cell.getCachedFormulaResultTypeEnum() ) {
269+
switch ( cell.getCachedFormulaResultType() ) {
270270
case NUMERIC:
271271
double num = cell.getNumericCellValue();
272272
if ( num - Math.round( num ) != 0 ) {
@@ -296,7 +296,7 @@ private String tryToReadCachedValue( Cell cell ) {
296296
}
297297

298298
private String getCellValue( final CellValue cv ) {
299-
switch ( cv.getCellTypeEnum() ) {
299+
switch ( cv.getCellType() ) {
300300
case BOOLEAN:
301301
return Boolean.toString( cv.getBooleanValue() );
302302
case NUMERIC:

drools-scorecards/src/main/java/org/drools/scorecards/parser/xls/XLSEventDataCollector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package org.drools.scorecards.parser.xls;
1818

19-
import org.apache.poi.hssf.util.CellReference;
19+
import org.apache.poi.ss.util.CellReference;
2020
import org.dmg.pmml.pmml_4_2.descr.*;
2121
import org.drools.core.util.StringUtils;
2222
import org.kie.pmml.pmml_4_2.extensions.PMMLExtensionNames;
@@ -52,7 +52,7 @@ public Scorecard getScorecard() {
5252

5353
private void fulfillExpectation(int currentRowCtr, int currentColCtr, Object cellValue, Class expectedClass) throws ScorecardParseException {
5454
List<DataExpectation> dataExpectations = resolveExpectations(currentRowCtr, currentColCtr);
55-
CellReference cellRef = new CellReference(currentRowCtr, currentColCtr);
55+
CellReference cellRef = new CellReference(currentRowCtr, currentColCtr,true,true);
5656
Method method = null;
5757
for (DataExpectation dataExpectation : dataExpectations) {
5858
try {

0 commit comments

Comments
 (0)