I am a little bit lost with version of
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
I tried version 3.17, 4.0.0 and 5.0.0.
if (c.getCellType () == CellType.NUMERIC.getCode())
{
}
or
if (c.getCellTypeEnum () == CellType.NUMERIC)
{
}
I was not able to get a code free of deprecation or type-errors :-(
I am using Eclipe with Maven and Java 11. After the cange of the version I did "Update Project" to update Maven.
In
apache poi 3.17
Cell.getCellType
returns aint
but is deprecated.Cell.getCellTypeEnum
returns aCellType
. See apache poi 3.17 API: Interface Cell.So using
apache poi 3.17
it must beIn
apache poi
greater than or equal version4.0.0
Cell.getCellType
returns aCellType
.Cell.getCellTypeEnum
also returns aCellType
but is deprecated. See apache poi 4.0 API: Interface Cell.So using
apache poi
greater than or equal version4.0.0
it must be