/**
* Return the cell type.
*
* Will return {@link CellType} in version 4.0 of POI.
* For forwards compatibility, do not hard-code cell type literals in your code.
*
* @return the cell type
* @deprecated POI 3.15. Will return a {@link CellType} enum in the future.
*/
int getCellType();
注释说未来会提供,没提供代替方法标过时,这种做法是有点奇葩
名字改成了:
getCellType
官方文档:https://poi.apache.org/apidoc...
文档说:返回 int 的在 4.0 版本后将要替换成返回 CellType,但是名字还是 getCellType