我在哪里可以找到 Netbeans 中的 Xlint 选项? [英] Where can I find the Xlint option in Netbeans?
问题描述
我在 Netbeans 中收到一个错误 Recompile with -Xlint:unchecked for details.
.在哪里可以找到取消选中的选项?
I get an error Recompile with -Xlint:unchecked for details.
in Netbeans. Where can I find the option to uncheck?
推荐答案
您不要取消选中"选择该选项,您需要将 -Xlint:unchecked
参数添加到传递给 Java 编译器的参数中.
You don't "uncheck" that option, you need to add the -Xlint:unchecked
parameter to the parameters passed to the Java compiler.
对于基于 Ant 的项目,这是通过 Project Properties ->构建 ->在附加编译器选项"中编译
对话框底部的输入字段(显示例如:-Xlint:unchecked")
For Ant based projects, this is done through Project Properties -> Build -> Compiling
in the "Additional compiler options" input field at the bottom of the dialog (where it says "e.g.: -Xlint:unchecked")
对于 Maven 项目,请参阅此答案
For Maven projects see this answer
这篇关于我在哪里可以找到 Netbeans 中的 Xlint 选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!