在 Eclipse 中正确运行 FindBugs 插件
我遇到了 FindBugs 工具来识别我的 java 代码中存在的连接泄漏和其他错误。 我从 Eclipse Marketplace 安装了该插件。我使用的是 Eclipse Helios。 然而,即使经过很长时间的搜索,我也无法找到有关安装插件后下一步该做什么的任何信息。 我从 eclipse 构建我的项目,然后将应用程序部署到 JBoss 服务器上。
我尝试重新启动服务器并访问我的应用程序,但 FindBugs 根本没有显示任何错误。我是否需要在类路径中添加任何条目,或者需要将任何 jar 添加到构建路径中? 请指导。
I came across FindBugs tool to identify connection leaks and other bugs which are present in my java code.
I installed the plugin from the Eclipse Marketplace.I am using Eclipse Helios.
However even after a very long search I am not able to find any information on what to do next after installing the plugin..
I build my project from eclipse and after that I deploy the application on JBoss server.
I tried by restarting the server and accessing my application but FindBugs shows no bugs at all..Do I need to add any entries in my class path or any jars needs to be added to the build path??
please guide.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议您安装 CheckStyle。它比 FindBugs 强大 10 倍。
I will recommend you to install CheckStyle. It is like 10 times more awesome than FindBugs.
Firebug 用于调试 Javascript,而不是 Java。 (它是 Mozilla 的插件。)我假设您指的是 Findbugs,而不是 Firebug。
Findbugs 是一个静态分析工具。其目的是对源代码执行静态分析,查找可能导致问题的代码模式。它可以发现一些可能导致资源泄漏的常见模式,但它无法检测所有类型的泄漏。
听起来,您需要一种不同类型的工具 - 动态存储泄漏检测器。请参阅https://stackoverflow.com/questions/1716597/java-memory-leak-detection-tools 获取建议。
Firebug is for debugging Javascript, not Java. (It is plugin for Mozilla.) I assume that you are referring to Findbugs, not Firebug.
Findbugs is a static analysis tool. Its purpose is to perform a static analysis of your source code looking for code patterns that are likely to cause problems. It can spot some common patterns that are likely causes of resource leaks, but it can't detect all kinds of leaks.
By the sounds of it, you need a different kind of tool - a dynamic storage leak detector. See https://stackoverflow.com/questions/1716597/java-memory-leak-detection-tools for recommendations.