您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

解决办法:Type safety: The expression of type List needs unchecked conversion to conform

柳鲲鹏 发布时间:2019-07-09 14:15:19 ,浏览量:0

  对于警告,吾必去之。遇到下面的警告,怎么办?

Type safety: The expression of type List needs unchecked conversion to conform

  对于List,Hashtable等都有这样的警告。

  • 解决办法一,造型。

  List temp =

  • 解决办法二,禁止检查,

  @SuppressWarnings("unchecked")

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0538s