簡體   English   中英

x的表達式被裝入X?

[英]The expression of type x is boxed into X?

我有點擔心我的Eclipse IDE當前正在寫入自動編碼或自動裝箱類型的每個表達式旁邊的警告:

The expression of type x is boxed into X

The expression of type X is unboxed into x

這是一個我應該做出反應的警告嗎? 我認為autoboxing是一種Java語言功能 - 但現在每次使用此功能時我似乎都會收到警告。

我不認為Eclipse默認情況下這樣做(我沒有),但你可以使用Preferences> Java> Compiler> Errors / Warnings> Potential programming problems> Boxing and Unboxing Conversions打開或關閉它。

它應該是“忽略”,除非你真的想知道這一點。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM