NetBeans 7.1 Java EE 中没有未经检查的警告
我将 Java EE 6 与 Java 7 和 Glassfish 3.1.1 结合使用。当我在菜单中选择“清理并构建”选项时,它可以工作,但不会显示有关未经检查的操作的警告。如何启用它? 还有一个问题:有没有什么方法可以在编辑器中显示所有警告,而无需单击“清理和构建”?
I use Java EE 6 with Java 7 and Glassfish 3.1.1. When I choose "clean and build" option in menu it works but it doesn't show warnings about unchecked operations. How to enable it?
And additional question: Is there any way to enable all warnings to by shown in editor without clicking "clean and build"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
进入工具>选项>编辑>提示。然后选择“Java”(如果尚未选择)。您会看到一长串警告。展开“标准 Javac 警告”项,您将在那里看到“未选中”。您可以单击它来激活它,或者更好的是,单击“标准 Javac 警告”来激活所有警告。
Netbeans 花了大约一分钟才真正应用更改;我多次尝试重建我的项目并在它工作之前重置选项。
Go in Tools > Options > Editor > Hints. Then select "Java" if it's not already the case. You'll see a long list of warnings. Expand the Standard Javac Warnings item and you'll see "unchecked" there. You can click it to activate it, or even better, click on Standard Javac Warnings to activate all of them.
It took about a minute for Netbeans to really apply the changes; I tried rebuilding my project many times and resetting the options before it worked.