| 1 | <html> |
| 2 | <head> |
| 3 | <title>FindBugs™ Fact Sheet</title> |
| 4 | <link rel="stylesheet" type="text/css" href="findbugs.css"> |
| 5 | @GOOGLE_ANALYTICS@ |
| 6 | </head> |
| 7 | <body> |
| 8 | |
| 9 | <table width="100%"><tr> |
| 10 | |
| 11 | @HTML_SIDEBAR@ |
| 12 | |
| 13 | <td align="left" valign="top"> |
| 14 | |
| 15 | <h1>FindBugs™ Fact Sheet</h1> |
| 16 | |
| 17 | <p> FindBugs looks for bugs in Java programs. It is based |
| 18 | on the concept of <i>bug patterns</i>. A bug pattern is a code |
| 19 | idiom that is often an error. Bug patterns arise for a variety |
| 20 | of reasons: |
| 21 | </p> |
| 22 | |
| 23 | <ul> |
| 24 | <li> Difficult language features |
| 25 | <li> Misunderstood API methods |
| 26 | <li> Misunderstood invariants when code is modified during maintenance |
| 27 | <li> Garden variety mistakes: typos, use of the wrong boolean operator |
| 28 | </ul> |
| 29 | |
| 30 | <p> FindBugs uses <i>static analysis</i> to inspect Java bytecode |
| 31 | for occurrences of bug patterns. |
| 32 | Static analysis means that FindBugs can find bugs by simply inspecting |
| 33 | a program's code: executing the program is not necessary. |
| 34 | This makes FindBugs very easy to use: in general, you should be |
| 35 | able to use it to look for bugs in your code within a few minutes of downloading it. |
| 36 | FindBugs works by analyzing Java bytecode (compiled class files), |
| 37 | so you don't even need the program's source code to use it. |
| 38 | Because its analysis is |
| 39 | sometimes imprecise, FindBugs can report <i>false warnings</i>, |
| 40 | which are warnings that do not indicate real errors. |
| 41 | In practice, the rate of false warnings reported by FindBugs |
| 42 | is less than 50%. |
| 43 | </p> |
| 44 | |
| 45 | <p> |
| 46 | FindBugs supports a plugin architecture allowing anyone to add new |
| 47 | bug detectors. The <a href="publications.html">publications page</a> |
| 48 | contains links to articles describing how to write a new detector |
| 49 | for FindBugs. If you are familiar with Java bytecode |
| 50 | you can write a new FindBugs detector in as little as a few minutes. |
| 51 | </p> |
| 52 | |
| 53 | <p> FindBugs is free software, available under the terms of the |
| 54 | <a href="http://www.gnu.org/copyleft/lesser.html">Lesser GNU Public License</a>. |
| 55 | It is written in Java, and can be run with any virtual machine compatible |
| 56 | with Sun's JDK 1.5. It can analyze programs written for any version |
| 57 | of Java. FindBugs was originally developed by Bill Pugh and David Hovemeyer. |
| 58 | It is maintained by Bill Pugh, and |
| 59 | a <a href="team.html">team of volunteers</a>. |
| 60 | </p> |
| 61 | |
| 62 | <p> FindBugs uses <a href="http://jakarta.apache.org/bcel/">BCEL</a> to |
| 63 | analyze Java bytecode. |
| 64 | As of version 1.1, FindBugs also supports bug detectors written using |
| 65 | the <a href="http://asm.objectweb.org/">ASM</a> bytecode framework. |
| 66 | FindBugs uses <a href="http://dom4j.org/">dom4j</a> |
| 67 | for XML manipulation. |
| 68 | </p> |
| 69 | |
| 70 | @HTML_FOOTER@ |
| 71 | |
| 72 | </td> |
| 73 | |
| 74 | </tr></table> |
| 75 | |
| 76 | </body> |
| 77 | </html> |