java 我在哪里可以找到 Netbeans 中的 Xlint 选项?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7663221/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 20:53:42  来源:igfitidea点击:

Where can I find the Xlint option in Netbeans?

javanetbeanscompiler-errors

提问by theking963

I get an error Recompile with -Xlint:unchecked for details.in Netbeans. Where can I find the option to uncheck?

Recompile with -Xlint:unchecked for details.在 Netbeans 中遇到错误。在哪里可以找到取消选中的选项?

回答by a_horse_with_no_name

You don't "uncheck" that option, you need to add the -Xlint:uncheckedparameter to the parameters passed to the Java compiler.

您不会“取消选中”该选项,您需要将该-Xlint:unchecked参数添加到传递给 Java 编译器的参数中。

This is done through Project Properties -> Build -> Compilingin the "Additional compiler options" input field at the bottom of the dialog (where it says "e.g.: -Xlint:unchecked")

这是通过Project Properties -> Build -> Compiling对话框底部的“其他编译器选项”输入字段完成的(它说“例如:-Xlint:unchecked”)

enter image description here

在此处输入图片说明