码迷,mamicode.com
首页 > 其他好文 > 详细

The expression of type Integer is unboxed into int

时间:2018-07-12 16:36:12      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:warning   图片   技术分享   csdn   ons   技术   problems   ESS   fonts   

问题:The expression of type Integer is unboxed into int

原因:java的包装类,方法里面要的是Integer,传入的参数确实int类型

技术分享图片

解决方案:

1."Window -> Preferences -> Java -> Compiler -> Errors/Warnings",=>"Potential programming problems "=>Boxing and unboxing conversions" 不检查就行了

 2.视而不见

 

参考:

https://stackoverflow.com/questions/5039105/the-expression-of-type-x-is-boxed-into-x

 

个人学习

 

The expression of type Integer is unboxed into int

标签:warning   图片   技术分享   csdn   ons   技术   problems   ESS   fonts   

原文地址:https://www.cnblogs.com/shaun-sheng/p/9299201.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!