Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2108327
  • 博文数量: 413
  • 博客积分: 10926
  • 博客等级: 上将
  • 技术积分: 3862
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-09 18:14
文章分类

全部博文(413)

文章存档

2015年(5)

2014年(1)

2013年(5)

2012年(6)

2011年(138)

2010年(85)

2009年(42)

2008年(46)

2007年(26)

2006年(59)

分类: 项目管理

2011-08-17 08:11:31


Contents:
  1. Install
    From online:
    From from archive:
  2. Usage

  3. Error Description:
  4. xxx

############################################################
Install
----------------------------------------------------------------
Install online
from:
Welcome to the FindBugs Eclipse plugin update site.

This web page provides automatic distribution and updates for the Eclipse plugin for FindBugs.

Plugin requirements

This plugin has primarily been tested with Eclipse 3.3 and 3.4 It should work with 3.x releases, but let us know if you have any problems. The plugin is not compatible with versions of Eclipse preceding 3.3. The plugin runs under Java 1.5/5.0, or newer.

Plugin installation

If you have previously installed a version of the FindBugs plugin prior to mid-May, 2006, then you should remove it first. Simply remove the de.tobject.findbugs_0.0.n directory from Eclipse's plugins directory.

To install the FindBugs plugin:

  1. In Eclipse, click on Help -> Software Update -> Find and Install...
  2. Choose the Search for new features to install option, and click Next.
  3. Click New Remote Site.
  4. Enter the following:
    • Name: FindBugs update site
    • URL: one of the following (note: no final slash on the url)
      • for official releases
      • -candidate for candidate releases and official releases
      • -daily for all releases, including developmental ones
    and click OK.
  5. "FindBugs update site" should appear under Sites to include in search.
    Click the checkbox next to it to select it, and click Finish.
  6. You should see FindBugs Feature under Select features to install.
    (You may have to click on one or two triangles to make it visible in the tree.)
    Select the checkbox next to it and click next.
  7. Select the I accept option to accept the license and click Next.
  8. Make sure the location is correct where you're installing it. The default (your workspace) should be fine. Click Finish.
  9. The plugin is not digitally signed. Go ahead and install it anyway.
  10. Click Yes to make Eclipse restart itself.

----------------------------------------------------------------
Install from archive
from:
2. Installation

We provide update sites that allow you to automatically install FindBugs into Eclipse and also query and install updates. There are three different update sites

FindBugs Eclipse update sites

Only provides official releases of FindBugs.

Provides official releases and release candidates of FindBugs.

Provides the daily build of FindBugs. No testing other than that it compiles.

You can also manually download the plugin from the following link: . Extract it in Eclipse's "plugins" subdirectory. (So /plugins/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821/findbugs.png should be the path to the FindBugs logo.)

Once the plugin is extracted, start Eclipse and choose HelpAbout Eclipse PlatformPlug-in Details. You should find a plugin called "FindBugs Plug-in" provided by "FindBugs Project".





############################################################
Usage
from:

FindBugs in Eclipse - Tutorial
Lars Vogel

Version 0.6

02.06.2010

Revision History
Revision 0.118.03.2008Lars Vogel
Created
Revision 0.2 - 0.5 18.05.2008 - 03.08.2009 Lars Vogel
bugfixes and updates
Revision 0.602.06.2010Lars Vogel
updated to latest Findbugs version and Eclipse 3.6

Findbugs

This article will describe the usage of the Findbugs plugin for Eclipse. Article is based on Eclipse 3.6 (Helios).

Table of Contents

4. Questions and Discussion
1.  Findbugs

Findbugs performs static analysis for the Java byte-code to identify software bugs. By providing early feedback about certain (potential) errors in the coding it helps the developer to quickly identify problems in his coding.

2. Using Findbugs
2.1.  Installation

Use the to install Findbugs from the Findbugs update site .

2.2. Configuration

After installing findbugs you can activate findbugs for your project via the properties of your project and select FindBugs -> Run FindBugs automatically.

2.3.  Using Findbugs in your projects

To see the Findbugs errors, select Window->Show View -> Other. The Findbugs errors will be displayed in this view.

3. Thank you
Please help me to support this article:

4. Questions and Discussion

Before posting questions, please see the . If you have questions or find an error in this article please use the . I have created a short list how to create good questions which might also help you.

5. Links and Literature
5.1. Code Analysis resources

Findbugs Homepage

5.2. vogella Resources

Join my Eclipse RCP Training to become an RCP Expert in 5 days (Training in German)

Introduction to Android Programming

Program in Java and compile to JavaScript and HTML

Create native applications in Java

Test your application

Put everything you have under distributed version control system




############################################################
Error Description
from:


FindBugs Bug Descriptions

This document lists the standard bug patterns reported by version 1.3.9.

Summary
DescriptionCategory
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Bad practice
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
DMI: Vacuous call to collectionsCorrectness
Correctness
Dm: Futile attempt to change max pool size of ScheduledThreadPoolExecutorCorrectness
Dm: Creation of ScheduledThreadPoolExecutor with zero core threadsCorrectness
Dm: Useless/vacuous call to EasyMock methodCorrectness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
IL: An apparent infinite recursive loopCorrectness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
MF: Method defines a variable that obscures a fieldCorrectness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
STI: Unneeded use of currentThread() call, to call interrupted() Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Correctness
Experimental
Experimental
Internationalization
Malicious code vulnerability
Malicious code vulnerability
  • function sendPV(){ var pvTrack = new PvTrack(); pvTrack.type = 35; // 频道类别ID pvTrack.channel = 189; // 频道ID pvTrack.pageType = 0; pvTrack.track(); } window.setTimeout("sendPV()", 0); var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20237423-2']); _gaq.push(['_setDomainName', '.chinaunix.net']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? '' : '') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ee5e8cdc4d43389b3d1bfd76e83216b' type='text/javascript'%3E%3C/script%3E"));
    阅读(8622) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~