zoukankan      html  css  js  c++  java
  • Eclipse

    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.
        
  • 相关阅读:
    圆染色问题[函数方程]
    javascript调用Flash里对象的方法(函数)搞了五个小时。
    java.net.SocketException: Connection reset 硬件防火墙也有罪?
    Persits.Jpeg CMYK-to-RGB
    Flash10下复制到剪切板的一种新方法
    Flash10 使用剪贴板得改变程序的写法了
    Flash:使用FileReference上传在Firefox上遇到的问题终于解决了
    解决FLASH遮住层的问题 IE,Firefox都适用!
    JAVA:当数据库重启后连接池没有自动识别的解决办法
    Flash与JavaScript互动
  • 原文地址:https://www.cnblogs.com/wahsonleung/p/3333265.html
Copyright © 2011-2022 走看看