Alternative to deprecated getCellType

后端 未结 8 2304
自闭症患者
自闭症患者 2020-11-27 05:44

I\'m reading an excel-file (file extension xlsx) using org.apache.poi 3.15.

This is my code:

try (FileInputStream fileInputStream = new FileInputStr         


        
8条回答
  •  星月不相逢
    2020-11-27 06:16

    From the documentation:

    int getCellType() Deprecated. POI 3.15. Will return a CellType enum in the future.

    Return the cell type. Will return CellType in version 4.0 of POI. For forwards compatibility, do not hard-code cell type literals in your code.

提交回复
热议问题