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

发布于 2024-12-08 11:16:45 字数 97 浏览 1 评论 0原文

我在 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

轻拂→两袖风尘 2024-12-15 11:16:45

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

对于基于 Ant 的项目,这是通过 Project Properties -> 完成的。构建->在对话框底部的“其他编译器选项”输入字段中进行编译(其中显示“eg: -Xlint:unchecked”)

在此处输入图像描述

对于 Maven 项目,请参阅此答案

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

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")

enter image description here

For Maven projects see this answer

兮子 2024-12-15 11:16:45

-Xlint 是 JVM 参数。在您的项目中,请按照以下步骤操作:

  1. 项目属性
  2. 运行
  3. VM 选项

在文本字段中写入 -Xlint:unchecked

-Xlint is a JVM parameter. In your project follow this steps:

  1. Project properties
  2. Run
  3. VM Options

And there in the text field you write -Xlint:unchecked

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文