The expression of type x is boxed into X?

后端 未结 1 505
鱼传尺愫
鱼传尺愫 2020-12-20 15:48

I\'m a little confused by a warning that my Eclipse IDE is currently writing next to every expression where types are autoboxed or autounboxed:

The expressio         


        
相关标签:
1条回答
  • 2020-12-20 16:24

    I don't think Eclipse does this by default (mine does not), but you can turn it on or off using Preferences > Java > Compiler > Errors/Warnings > Potential programming problems > Boxing and Unboxing Conversions.

    It should be "Ignore" unless you really want to know about this.

    0 讨论(0)
提交回复
热议问题