Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.67.x-blue] upgrade apache poi to 5.2.5 #76

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading