java - poi部分方法过时

查看:424
本文介绍了java - poi部分方法过时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

poi获取单元格类型方法getCellTypeEnum()在3.15版本中过时,但是官网文档是基于3.8版本,还是用的此方法,怎么能找到替代方法?

解决方案

 /**
     * 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();
    
    

注释说未来会提供,没提供代替方法标过时,这种做法是有点奇葩

这篇关于java - poi部分方法过时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆