[英]Where can I find a SpringLayout option in NetBeans GUI Builder?
[英]Where can I find the Xlint option in Netbeans?
我收到錯誤Recompile with -Xlint:unchecked for details.
在 Netbeans 中。 在哪里可以找到取消選中的選項?
您不要“取消選中”該選項,您需要將-Xlint:unchecked
參數添加到傳遞給 Java 編譯器的參數中。
對於基於 Ant 的項目,這是通過Project Properties -> Build -> Compiling
在對話框底部的“Additional compiler options”輸入字段中完成的(其中顯示“ eg: -Xlint:unchecked ”)
對於 Maven 項目,請參閱此答案
-Xlint
是一個 JVM 參數。 在您的項目中執行以下步驟:
在你寫的文本字段中-Xlint:unchecked
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.