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

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

The expression of type Integer is unboxed into 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


个人学习


相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-07-26
  • 2021-09-05
  • 2022-12-23
相关资源
相似解决方案