Eclipse -  FindBugs Plugin 的安装和使用

FindBugs is a static analysis tool that examines the classes in search of potential problems during development, providing a powerful code auditing feature. It analyzes the bytecode to identify the familiar patterns. It is not limited to perform search using regular expressions, it tries to understand what the program wants to do. 
FindBugs 是一款静态的分析工具,它具有了强大的代码审查功能,可以检查所有的类以发现在开发阶段潜在的一些问题。它通过分析字节码识别相似的样式。它并不局限与使用正则表达式进行搜索,它还试图理解程序的所实现的功能。

安装插件


FindBugs is a plugin compatible with Eclipse versions 3.x: (3.0, 3.1, 3.2, ...). 
If you have already installed a previous version of FindBugs (before May 2006), then delete this version: 
Simply delete the de.tobject.findbugs_0.0.n folder located in the plugins directory of Eclipse. 
Verify that the JAVA_HOME environment variable is present.

To install the FindBugs plug-in, follow these steps:

      In Eclipse, click Help/Software Update/Find and Install ...

    

    Choose the option "Search for new features to install" and click Next.

    

    Click on New Remote Site.

    

  Fill the following fields:

    Name: FindBugs update site

    URL: enter the following: (note: no slash at the end of the url)

    For official releases: http://findbugs.cs.umd.edu/eclipse

    For official releases and candidates release:http://findbugs.cs.umd.edu/eclipse-candidate

    For all versions:http://findbugs.cs.umd.edu/eclipse-daily

    

  Then click OK.

  "FindBugs update site" should appear in the list "Sites to include in search".

  Select the checkbox "FindBugs update site", then click "Finish".

    

    "FindBugs Feature" would then appear under "Select features to install".

    

    Select the checkbox and click "next".

    Select the "I accept" to accept the license and click "Next."

    

    Make sure that the installation directory is correct. Then click Finish.

    

    Restart Eclipse.

插件的使用

    The FindBugs Window 
    Click on Window/Show View/Other /Bug Explorer 

                    

The " Bug Explorer" and "Bug Details" windows should appear . 

查看 bugs

   Select projects, packages, or classes that you want to check, right-click and choose Find Bugs.
    

    The bugs found by FindBugs appear in the Bug Explorer window.

    

Eclipse - FindBugs Plugin 的安装和使用的更多相关文章

  1. eclipse maven plugin 插件 安装 和 配置

      离线插件 点击下载离线安装包:eclipse-maven-plugin.zip ( for eclipse helios or higher ) .解压缩到任意目录(如这里的plugins目录): ...

  2. Eclipse FindBugs的安装

    原文:http://blog.sina.com.cn/s/blog_62186b460100l3mx.html 1安装:首先到官方网站下载最新版本FindBugs    http://findbugs ...

  3. Java静态代码分析工具——FindBugs插件的安装与使用

    1 什么是FindBugs FindBugs 是一个静态分析工具,它检查类或者 JAR 文件,将字节码与一组缺陷模式进行对比以发现可能的问题.有了静态分析工具,就可以在不实际运行程序的情况对软件进行分 ...

  4. eclipse常用插件在线安装地址或下载地址

    本文转载自:http://my.oschina.net/bloghu/blog/198922 一,反编译插件: A.Jadclipse 1.打开eclipse增加站点:http://jadclipse ...

  5. Eclipse常用的插件安装

    嫌公司用的eclipse不爽,准备自己弄一个,diy的,没想到装插得烦死人. 诱惑人的“常用插件”: (1)    AmaterasUML        介绍:Eclipse的UML插件,支持UML活 ...

  6. 【转载】eclipse常用插件在线安装地址或下载地址

    一,反编译插件: A.Jadclipse 1.打开eclipse增加站点:http://jadclipse.sf.net/update,在线安装好JDT Decompiler 3.4.0 2.http ...

  7. FindBugs插件的安装与使用

    转载:http://www.cnblogs.com/kayfans/archive/2012/06/18/2554022.html 1 什么是FindBugs FindBugs 是一个静态分析工具,它 ...

  8. 分享一下 Eclipse 插件 PyDev 的安装

    想趁暑假学习一下python,学好语言好的开发环境是基础.因为安装有eclipse,所以想安装PyDev插件作为python开发环境.本来以为是一件简单的事情,结果整整弄了一下午各种装不上,度娘上的几 ...

  9. Eclipse RCP /Plugin移除Search对话框

    RCP:如何移除Search对话框中不需要的项 2013-08-18 22:31 by Binhua Liu, 231 阅读, 0 评论, 收藏, 编辑 前言 很久没写文章了,准备写一系列关于Ecli ...

随机推荐

  1. Java读取本地文件进行unicode解码

    工具使用: package test.opservice; import eh.util.MapValueUtil; import java.io.BufferedReader; import jav ...

  2. 终于成为博客员的一员了,这是我的第一篇博文,写一个关于ul li内容宽度的问题和解决方案

    第一次写博文,写一个刚才遇到的问题吧. 关于ul li文字长度不固定,一行显示多列.当指定宽度时,文字长度超过指定的li宽度时解决方案: 如下代码 <h4>发送对象(共10个会员)< ...

  3. sysfs->sys简单介绍

    Sys节点 1:sysfs 是 Linux 内核中设计较新的一种虚拟的基于内存的文件系统, sysfs 的挂载点 /sys 目录结构. 2:/sys 文件系统下的目录结构 /sys 下的目录结构是经过 ...

  4. 用于主题检测的临时日志(d94169f9-f1c0-45a2-82d4-6edc4bd35539 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)

    这是一个未删除的临时日志.请手动删除它.(5327dce0-d2d1-4fba-8801-d3ff67564a96 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)

  5. DB天气app冲刺二阶段第十一天(完结)

    今天最后一天冲刺了,明天就不再冲刺了..已经把所有的技术的问题还有设计的问题都弄好了吧应该说 至少目前来说是的.因为有的实现不了的或者需要耗费时间的已经果断舍弃了,然后需要完善的也都基本完善了. 现在 ...

  6. PHP Cookie处理函数

    (o゜▽゜)o☆[BINGO!] ok,我们先看看cookie是什么东东? cookie是服务器留在客户端的用于识别用户或者存储一些数据的小文件(注意,session存储在服务器端,这是两者的区别之一 ...

  7. js收集的一些好的题型

    ①: var a = {x:1},b=a;var a = a.z = {Y:2}; 求a和b的值? ②:   var  w = (function a(){return '1'},function b ...

  8. Chp17: Moderate

    17.1 swap a number in place.(without temporary variables) a = a ^ b; b = a ^ b; a = a ^ b; 17.3 Writ ...

  9. HDU1251 统计难题 Trie树

    题目很水,但毕竟是自己第一道的Trie,所以还是发一下吧.Trie的更多的应用慢慢学,AC自动机什么的也慢慢学.... #include<iostream> #include<cst ...

  10. java基础知识回顾之---java StringBuffer,Stringbuilder与String的区别

    public class StringBuilderTest { /** * StringBuffer和Stringbuilder :使用与内容可以被修改的字符串 * 与String的区别:Strin ...