首页 > 其他 > 详细

The expression of type Integer is unboxed into int

时间:2018-07-12 15:25:53      阅读:184      评论:0      收藏:0      [点我收藏+]

问题: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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!