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.17Cell.getCellTypereturns aintbut is deprecated.Cell.getCellTypeEnumreturns aCellType. See apache poi 3.17 API: Interface Cell.So using
apache poi 3.17it must beIn
apache poigreater than or equal version4.0.0Cell.getCellTypereturns aCellType.Cell.getCellTypeEnumalso returns aCellTypebut is deprecated. See apache poi 4.0 API: Interface Cell.So using
apache poigreater than or equal version4.0.0it must be