【发布时间】:2011-12-01 13:40:35
【问题描述】:
我在 Netbeans 中收到错误 Recompile with -Xlint:unchecked for details.。在哪里可以找到取消选中的选项?
【问题讨论】:
标签: java netbeans compiler-errors
我在 Netbeans 中收到错误 Recompile with -Xlint:unchecked for details.。在哪里可以找到取消选中的选项?
【问题讨论】:
标签: java netbeans compiler-errors
您不要“取消选中”该选项,您需要将-Xlint:unchecked 参数添加到传递给Java 编译器的参数中。
对于基于 Ant 的项目,这是通过对话框底部“附加编译器选项”输入字段中的 Project Properties -> Build -> Compiling 完成的(其中显示“eg: -Xlint:unchecked”)
对于 Maven 项目,请参阅 this answer
【讨论】: