📄 index.html
字号:
<html> <head> <title>FindBugs™ - Find Bugs in Java Programs</title> <link rel="stylesheet" type="text/css" href="findbugs.css" /> </head> <body> <table width="100%"> <tr> <td bgcolor="#b9b9fe" valign="top" align="left" width="20%"> <table width="100%" cellspacing="0" border="0"> <tr><td><a class="sidebar" href="index.html"><img src="umdFindbugs.png" alt="FindBugs"></a></td></tr> <tr><td> </td></tr><tr><td><b>Docs and Info</b></td></tr> <tr><td><font size="-1"><a class="sidebar" href="demo.html">Demo and data</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="users.html">Users and supporters</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://findbugs.blogspot.com/">FindBugs blog</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="factSheet.html">Fact sheet</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="manual/index.html">Manual</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="ja/manual/index.html">Manual(ja/日本語)</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="FAQ.html">FAQ</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="bugDescriptions.html">Bug descriptions</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="mailingLists.html">Mailing lists</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="publications.html">Documents and Publications</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="links.html">Links</a></font></td></tr> <tr><td> </td></tr><tr><td><a class="sidebar" href="downloads.html"><b>Downloads</b></a></td></tr> <tr><td> </td></tr><tr><td><a class="sidebar" href="http://www.cafeshops.com/findbugs"><b>FindBugs Swag</b></a></td></tr><tr><td> </td></tr><tr><td><b>Development</b></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://sourceforge.net/tracker/?group_id=96405">Open bugs</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="reportingBugs.html">Reporting bugs</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="contributing.html">Contributing</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="team.html">Dev team</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="api/index.html">API</a> <a class="sidebar" href="api/overview-summary.html">[no frames]</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="Changes.html">Change log</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://sourceforge.net/projects/findbugs">SF project page</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://code.google.com/p/findbugs/source/browse/">Browse source</a></font></td></tr> <tr><td><font size="-1"><a class="sidebar" href="http://code.google.com/p/findbugs/source/list">Latest code changes</a></font></td></tr> </table> </td> <td align="left" valign="top"> <p> <table><tr> <td valign="center"> <a href="http://findbugs.sourceforge.net/"><img src="buggy-sm.png" alt="FindBugs logo" border="0" /> </a> <td valign="center"> <a href="http://www.umd.edu/"><img src="informal.png" alt="UMD logo" border="0" /> </a> <td valign="center"> <a href=" http://www.surelogic.com/findbugs"><img src="surelogic.png" alt="SureLogic logo" border="0" align="right" /> </a> </tr></table> <h1> FindBugs™ - Find Bugs in Java Programs </h1> <p> This is the web page for FindBugs, a program which uses static analysis to look for bugs in Java code. It is free software, distributed under the terms of the <a href="http://www.gnu.org/licenses/lgpl.html">Lesser GNU Public License</a>. The name FindBugs™ and the <a href="buggy-sm.png">FindBugs logo</a> are trademarked by <a href="http://www.umd.edu">The University of Maryland</a>. As of July, 2008, FindBugs has been downloaded more than 700,000 times. </p> <p> FindBugs requires JRE (or JDK) 1.5.0 or later to run. However, it can analyze programs compiled for any version of Java. The current version of FindBugs is 1.3.8, released on 13:06:06 EDT, 15 March, 2009. <a href="reportingBugs.html">We are very interested in getting feedback on how to improve FindBugs</a>. </p> <p> <div style="margin:15px; padding:10px; background-color:#D7E5F6; border:1px solid #1560BD; color:#1560BD; font-family:sans-serif"> <div style="padding:3px; background-color:#1C39BB;"> <a href="http://www.cs.umd.edu/projects/PL/surveys/findbugs" target="_blank" style="font-size:larger; color:white; font-weight:bold; text-decoration:none; font-variant:small-caps;letter-spacing:0.1em"> Take Our Survey!</a> </div> <p>We would like to better understand <b>how FindBugs is used</b>, and particularly how it is integrated into software development processes at different organizations. We have created a <a href="http://www.cs.umd.edu/projects/PL/surveys/findbugs" target="_blank">10-20 minute survey</a> to capture some of these trends. Participants can also choose to enter a drawing to win <a href="http://www.cafepress.com/findbugs">FindBugs Swag</a> from <a href="http://www.cs.umd.edu/~pugh">Bill Pugh</a>.</p> <p>To take the survey, visit <a href="http://www.cs.umd.edu/projects/PL/surveys/findbugs" target="_blank">http://www.cs.umd.edu/projects/PL/surveys/findbugs</a></p> <div>For more information, visit the <a href="http://www.cs.umd.edu/projects/PL/saus">Project Website</a>.</div> </div> <p> <a href="#moreSoftware">More</a> | <a href="#sample">Output</a> | <a href="#try">Try</a> | <a href="#changes">Changes</a> | <a href="#talks">Talks</a> | <a href="#papers">Papers </a> | <a href="#sponsors">Sponsors</a> | <a href="#support">Support</a> </p> <h1>New</h1> <p>We created <a href="http://www.linkedin.com/groups?gid=976017">LinkedIn</a> and <a href="http://www.facebook.com/group.php?gid=33445880950">Facebook</a> groups for the FindBugs community. Join these to help meet up with other users and contributors to FindBugs. <h1><a name="moreSoftware">Additional open source projects</a></h1> <p>The following software is being made available by the University of Maryland and the FindBugs project. The software is still preliminary, and needs volunteers to help mature it. <ul> <li><a href="http://code.google.com/p/multithreadedtc/">Multithreaded test case</a>, a framework designed to make it easy to create test cases for concurrent software in which multiple threads must coordindate their activity to perform a test (e.g., testing a concurrent blocking queue, with one thread that blocks when it trys to add to a full queue, and another thread that unblocks the first by removing an element). </li> <li><a href="http://code.google.com/p/checked-uncontended-lock/">Checked uncontended lock</a>, an implementation of the Java 5 Lock and ReadWriteLock interfaces that throw exceptions if they detect lock contention. These locks are designed to be used for debugging, and can be used in places where you don't believe you need to use a lock but want to verify that at runtime. </li> </ul> <h1> <a name="sample">Sample output</a> </h1> <p> As an example of the kind of issues FindBugs can identify, <a href="demo.html">we provide our results</a> on the Sun's JDK 7, Eclipse, Netbeans, Glassfish and JBoss. We present these results as a table showing the number of warnings we generate, an html report generated by FindBugs, and using a Java Webstart demo of FindBugs that loads the results of our analysis and the relevant source, so that you can view the source corresponding to each of our warnings and judge for yourself the accuracy of Findbugs. </p> <p> Briefly, this table gives the number of warnings we found in various applications we use as benchmarks: </p> <table border="2"><tr><th rowspan="2">Application</th><th colspan="2">Details</th><th colspan="2">Correctness bugs</th><th rowspan="2">Bad Practice</th><th rowspan="2">Dodgy</th><th rowspan="2">KNCSS</th></tr><tr><th>HTML</th><th>WebStart</th><th>NP bugs</th><th>Other</th></tr><tr><td align="right">Sun JDK 1.7.0-b12</td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/jdk7/index.html">All</a> </td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/jdk7/index.jnlp">All</a> <a href="http://findbugs.cs.umd.edu/demo/jdk7/small.jnlp">Small</a> </td><td align="right">68</td><td align="right">180</td><td align="right">954</td><td align="right">654</td><td align="right">597</td></tr><tr><td align="right">eclipse-SDK-3.3M7-solaris-gtk</td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/eclipse/index.html">All</a> </td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/eclipse/index.jnlp">All</a> <a href="http://findbugs.cs.umd.edu/demo/eclipse/small.jnlp">Small</a> </td><td align="right">146</td><td align="right">259</td><td align="right">1,079</td><td align="right">643</td><td align="right">1,447</td></tr><tr><td align="right">netbeans-6_0-m8</td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/netbeans/index.html">All</a> </td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/netbeans/index.jnlp">All</a> <a href="http://findbugs.cs.umd.edu/demo/netbeans/small.jnlp">Small</a> </td><td align="right">189</td><td align="right">305</td><td align="right">3,010</td><td align="right">1,112</td><td align="right">1,022</td></tr><tr><td align="right">glassfish-v2-b43</td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/glassfish/index.html">All</a> </td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/glassfish/index.jnlp">All</a> <a href="http://findbugs.cs.umd.edu/demo/glassfish/small.jnlp">Small</a> </td><td align="right">146</td><td align="right">154</td><td align="right">964</td><td align="right">1,222</td><td align="right">2,176</td></tr><tr><td align="right">jboss-4.0.5</td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/jboss/index.html">All</a> </td><td align="right"> <a href="http://findbugs.cs.umd.edu/demo/jboss/index.jnlp">All</a> <a href="http://findbugs.cs.umd.edu/demo/jboss/small.jnlp">Small</a> </td><td align="right">30</td><td align="right">57</td><td align="right">263</td><td align="right">214</td><td align="right">178</td></tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -