Netbeans IDE 有什么样的错误检测分析?
我正在对 Netbeans IDE 进行一些研究。我的意思是,当 Netbeans 已经有内置的错误检测系统时,为什么还要使用 ActionPMD 和 FindBugs 插件呢?差异真的那么显着吗?
I'm doing some research on Netbeans IDE. I mean, why use ActionPMD and FindBugs plug-ins when Netbeans already has a built in error detection system? Is the difference really that significant?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
FindBugs 和 ActionPMD“深入挖掘”。如果没有它们,Netbeans 可以轻松发现问题,例如已写入但从未读取的局部变量。 FindBugs 会更进一步,找到尚未关闭的流。一些规则还包括对“最佳实践”和可能的安全问题的测试。
只是为了澄清上面的评论:FindBugs 和 ActionPMB 都是静态分析工具。根据我的经验,FindBugs 对于查找细微缺陷和性能问题非常有用。
FindBugs and ActionPMD "dig deeper". Without them, Netbeans can easily find issues like a local variable that is written to but never read. FindBugs will go a step further, and find streams that have not been closed ext..Some of the rules also include tests for "best practices" and possible security issues.
Just to clarify on the comment above: FindBugs and ActionPMB are both static analysis tools. In my experience, FindBugs is useful for finding subtle flaws and performance issue.