downgrade POI to 4.0.1 to avoid bug

https://bz.apache.org/bugzilla/show_bug.cgi?id=63845
This commit is contained in:
2019-10-15 10:16:52 +02:00
parent 06fe2231ec
commit 103b8348d0
2 changed files with 4 additions and 2 deletions

View File

@ -34,6 +34,7 @@ import org.apache.poi.ss.formula.ptg.Ptg;
import org.apache.poi.ss.formula.ptg.RefPtgBase;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.DataValidation;
import org.apache.poi.ss.usermodel.DataValidationHelper;
import org.apache.poi.ss.usermodel.Row;
@ -183,7 +184,7 @@ public class WorkbookApp {
newCell.setCellValue(oldCell.getNumericCellValue());
break;
case BLANK:
newCell.setBlank();
newCell.setCellType(CellType.BLANK);
break;
case BOOLEAN:
newCell.setCellValue(oldCell.getBooleanCellValue());

View File

@ -220,7 +220,8 @@ limitations under the License.
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.0</version>
<version>4.0.1</version>
<!-- do not upgrade to 4.1.0, see bug https://bz.apache.org/bugzilla/show_bug.cgi?id=63845 -->
</dependency>
<dependency>
<groupId>com.inversoft</groupId>