Debian Codegraph @

src/doc/index.html

raw symbols SCIP
1 <html>
2 <head>
3 <title>FindBugs&trade; - Find Bugs in Java Programs</title>
4 <link rel="stylesheet" type="text/css" href="findbugs.css" />
5 @GOOGLE_ANALYTICS@
6 </head>
7
8 <body>
9
10 <table width="100%">
11 <tr>
12
13 @HTML_SIDEBAR@
14
15 <td align="left" valign="top">
16
17 <p></p>
18 <table>
19 <tr>
20 <td valign="center"><a href="@WEBSITE@/"><img src="buggy-sm.png" alt="FindBugs logo"
21 border="0" /> </a></td>
22 <td valign="center"><a href="http://www.umd.edu/"><img src="informal.png"
23 alt="UMD logo" border="0" /> </a></td>
24 </tr>
25 </table>
26
27 <h1>FindBugs&trade; - Find Bugs in Java Programs</h1>
28
29 <p>
30 This is the web page for FindBugs, a program which uses static analysis to look for bugs in Java
31 code.&nbsp; It is free software, distributed under the terms of the <a
32 href="http://www.gnu.org/licenses/lgpl.html">Lesser GNU Public License</a>. The name
33 FindBugs&trade; and the <a href="buggy-sm.png">FindBugs logo</a> are trademarked by <a
34 href="http://www.umd.edu">The University of Maryland</a>. FindBugs has been downloaded more than
35 a million times.
36 </p>
37
38 <p>The current version of FindBugs is @VERSION@.</p>
39
40 <p>
41 FindBugs requires JRE (or JDK) 1.7.0 or later to run.&nbsp; However, it can analyze programs
42 compiled for any version of Java, from 1.0 to 1.8.
43
44 <p> The current version of FindBugs is @VERSION@,
45
46 released on @RELEASE_DATE@. <a href="reportingBugs.html">We are very interested in getting
47 feedback on how to improve FindBugs</a>. File bug reports on <a
48 href="http://sourceforge.net/p/findbugs/_list/tickets?source=navbar"> our
49 sourceforge bug tracker</a>
50 </p>
51
52
53 <p>
54 <a href="#changes">Changes</a> | <a href="#talks">Talks</a> | <a href="#papers">Papers </a> | <a
55 href="#sponsors">Sponsors</a> | <a href="#support">Support</a>
56 </p>
57
58 <h1>FindBugs 3.0.1 Release</h1>
59 <ul>
60 <li>A number of changes described in the <a href="Changes.html">changes document</a>, including new bug patterns:
61 <ul>
62 <li>
63 <a
64 href="http://findbugs.sourceforge.net/bugDescriptions.html#BSHIFT_WRONG_ADD_PRIORITY">BSHIFT_WRONG_ADD_PRIORITY</a>,
65 <li>
66 <a
67 href="http://findbugs.sourceforge.net/bugDescriptions.html#CO_COMPARETO_INCORRECT_FLOATING">CO_COMPARETO_INCORRECT_FLOATING</a>,
68 <li>
69 <a
70 href="http://findbugs.sourceforge.net/bugDescriptions.html#DC_PARTIALLY_CONSTRUCTED">DC_PARTIALLY_CONSTRUCTED</a>,
71 <li>
72 <a
73 href="http://findbugs.sourceforge.net/bugDescriptions.html#DM_BOXED_PRIMITIVE_FOR_COMPARE">DM_BOXED_PRIMITIVE_FOR_COMPARE</a>,
74 <li>
75 <a
76 href="http://findbugs.sourceforge.net/bugDescriptions.html#DM_INVALID_MIN_MAX">DM_INVALID_MIN_MAX</a>,
77 <li>
78 <a
79 href="http://findbugs.sourceforge.net/bugDescriptions.html#ME_MUTABLE_ENUM_FIELD">ME_MUTABLE_ENUM_FIELD</a>,
80 <li>
81 <a
82 href="http://findbugs.sourceforge.net/bugDescriptions.html#ME_ENUM_FIELD_SETTER">ME_ENUM_FIELD_SETTER</a>,
83 <li>
84
85 <a
86 href="http://findbugs.sourceforge.net/bugDescriptions.html#MS_MUTABLE_COLLECTION">MS_MUTABLE_COLLECTION</a>,
87 <li>
88 <a
89 href="http://findbugs.sourceforge.net/bugDescriptions.html#MS_MUTABLE_COLLECTION_PKGPROTECT">MS_MUTABLE_COLLECTION_PKGPROTECT</a>,
90 <li>
91 <a
92 href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_ARRAY_INDEX">RANGE_ARRAY_INDEX</a>,
93 <li>
94 <a
95 href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_ARRAY_OFFSET">RANGE_ARRAY_OFFSET</a>,
96 <li>
97 <a
98 href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_ARRAY_LENGTH">RANGE_ARRAY_LENGTH</a>,
99 <li>
100 <a
101 href="http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_STRING_INDEX">RANGE_STRING_INDEX</a>,
102 <li>
103 <a
104 href="http://findbugs.sourceforge.net/bugDescriptions.html#RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT">RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT</a>,
105 <li>
106 <a
107 href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_CONDITION">UC_USELESS_CONDITION</a>,
108 <li>
109 <a
110 href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_CONDITION_TYPE">UC_USELESS_CONDITION_TYPE</a>,
111 <li>
112 <a
113 href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_OBJECT">UC_USELESS_OBJECT</a>,
114 <li>
115 <a
116 href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_OBJECT_STACK">UC_USELESS_OBJECT_STACK</a>,
117 <li>
118 <a
119 href="http://findbugs.sourceforge.net/bugDescriptions.html#UC_USELESS_VOID_METHOD">UC_USELESS_VOID_METHOD</a>
120 </ul>
121 </li>
122 </ul>
123 <h1>FindBugs 3.0.0 Release</h1>
124
125 <ul>
126 <li>FindBugs supports Java 8 now (both as runtime and target platform).
127 <li>FindBugs requires minimum Java 7 as runtime environment!
128 <li>FindBugs uses ASM 5 now which means that some 3rd party detectors based on FindBugs 2.x/ASM 3 has to be upgraded.
129 See details in <a href="http://download.forge.objectweb.org/asm/asm4-guide.pdf#chapter.5">ASM documentation</a>.
130 <li>New Bug patterns:
131 <a
132 href="http://findbugs.sourceforge.net/bugDescriptions.html#NP_OPTIONAL_RETURN_NULL">NP_OPTIONAL_RETURN_NULL</a>,
133 <a
134 href="http://findbugs.sourceforge.net/bugDescriptions.html#IIO_INEFFICIENT_INDEX_OF">IIO_INEFFICIENT_INDEX_OF</a>,
135 <a
136 href="http://findbugs.sourceforge.net/bugDescriptions.html#IIO_INEFFICIENT_LAST_INDEX_OF">IIO_INEFFICIENT_LAST_INDEX_OF</a>
137 <a
138 href="http://findbugs.sourceforge.net/bugDescriptions.html#CNT_ROUGH_CONSTANT_VALUE">CNT_ROUGH_CONSTANT_VALUE</a>
139 </li>
140 <li>New "Source" filter which can be used to filter out classes generated from other languages:
141 <pre>
142 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
143 &lt;FindBugsFilter&gt;
144 &lt;Match&gt;
145 &lt;Source name="~.*\.groovy" /&gt;
146 &lt;/Match&gt;
147 &lt;/FindBugsFilter&gt;
148 </pre>
149 </li>
150 <li>New "-auxclasspathFromFile" and "-analyzeFromFile" command line options.
151 </li>
152 <li>New "nested" ant task attribute.
153 </li>
154
155
156 <!--
157 <li>Fixed false positives for the following bug patterns (XXX occurrences in findbugsTestCases):
158 <ul>
159 <li><a
160 href="http://findbugs.sourceforge.net/bugDescriptions.html#XXX">XXX</a>
161 </ul>
162 </li>
163
164 <li>Fixed false negatives for the following bug patterns (XXX occurrences in findbugsTestCases):
165 <ul>
166 <li><a
167 href="http://findbugs.sourceforge.net/bugDescriptions.html#XXX">XXX</a>
168 </ul>
169 </li>
170 -->
171
172 <li>Various bug fixes, also many patches from community. Thanks for your contributions!
173 </li>
174 </ul>
175
176
177
178 <h1>FindBugs 2.0.3 Release</h1>
179 <p>FindBugs 2.0.3 is intended to be a minor bug fix release over
180 FindBugs 2.0.2. Although than some improvements to existing bug detectors
181 and analysis engines, and a few new bug patterns, and some
182 important bug fixes to the Eclipse plugin, no significant changes
183 should be observed. Consult the <a href="Changes.html">Change log</a>
184 for more details.</p>
185
186 <p>
187 Also check out <a href="https://github.com/findbugsproject/findbugs/commits/master">https://github.com/findbugsproject/findbugs/commits/master</a>
188 for more information about some recent features/changes in FindBugs.
189 </p>
190
191
192 <h3>
193 <a href="findbugs2.html">Major changes in FindBugs 2.0 (from FindBugs 1.3.x)</a>
194 </h3>
195 <ul>
196 <li><a href="findbugs2.html#cloud">FindBugs Communal cloud</a></li>
197 <li><a href="findbugs2.html#updateChecks">checks for updated versions of FindBugs</a></li>
198 <li><a href="findbugs2.html#plugins">Powerful plugin capabilities</a></li>
199 <li><a href="findbugs2.html#newBugPatterns">new bug patterns</a>,
200 including new/improved support for <a href="findbugs2.html#guava">Guava</a>
201 and <a href="findbugs2.html#jsr305">JSR-305</a>
202 </li>
203 <li><a href="findbugs2.html#performance">improved performance</a></li>
204 </ul>
205
206
207 <h2>Ways to run FindBugs</h2>
208 <p>Here are various ways to run FindBugs. For plugins not supported by the FindBugs team, check to
209 see what version of FindBugs they provide; it might take a little while for the plugins to update to
210 FindBugs 2.0.</p>
211 <dl>
212 <dt>Command line, ant, GUI</dt>
213 <dd>Provided in FindBugs download</dd>
214 <dt>
215 <a href="http://www.eclipse.org/">Eclipse</a>
216 </dt>
217 <dd>
218 Update site for Eclipse plugin: <a href="http://findbugs.cs.umd.edu/eclipse">http://findbugs.cs.umd.edu/eclipse</a>.
219 Supported by the FindBugs project.
220 </dd>
221 <dt>
222 <a href="http://maven.apache.org/">Maven</a>
223 </dt>
224 <dd>
225 <a href="http://mojo.codehaus.org/findbugs-maven-plugin/">http://mojo.codehaus.org/findbugs-maven-plugin/</a>
226 </dd>
227 <dt>
228 <a href="http://netbeans.org/">Netbeans</a>
229 </dt>
230 <dd>
231 <a href="http://kenai.com/projects/sqe/pages/Home">SQE: Software Quality Environment</a>
232 </dd>
233 <dt><a href="https://wiki.jenkins-ci.org/display/JENKINS">Jenkins</a></dt>
234 <dd> <a href="https://wiki.jenkins-ci.org/display/JENKINS/FindBugs+Plugin">Jenkins FindBugs Plugin</a>
235
236 <dt>
237 <a href="http://wiki.hudson-ci.org/display/HUDSON/Home">Hudson</a>
238 </dt>
239 <dd>
240 <a href="http://wiki.hudson-ci.org/display/HUDSON/FindBugs+Plugin"> HUDSON FindBugs Plugin</a>
241 </dd>
242 <dt>
243 <a href="http://www.jetbrains.com/idea/">IntelliJ</a>
244 </dt>
245 <dd>
246 Several plugins, see <a href="http://code.google.com/p/findbugs/wiki/IntellijFindBugsPlugins">http://code.google.com/p/findbugs/wiki/IntellijFindBugsPlugins</a>
247 for a description.
248
249 </dd>
250 </dl>
251
252 <h1>Experience with FindBugs</h1>
253 <ul>
254 <li><b>Google FindBugs Fixit</b>: Google has a tradition of <a
255 href="http://www.nytimes.com/2007/10/21/jobs/21pre.html">engineering fixits</a>, special days where
256 they try to get all of their engineers focused on some specific problem or technique for improving
257 the systems at Google. A fixit might work to improve web accessibility, internal testing, removing
258 TODO's from internal software, etc.
259
260 <p>In 2009, Google held a global fixit for UMD's FindBugs tool a static analysis tool for
261 finding coding mistakes in Java software. The focus of the fixit was to get feedback on the
262 4,000 highest confidence issues found by FindBugs at Google, and let Google engineers decide
263 which issues, if any, needed fixing.</p>
264 <p>More than 700 engineers ran FindBugs from dozens of offices. More than 250 of them entered
265 more than 8,000 reviews of the issues. A review is a classification of an issue as must-fix,
266 should-fix, mostly-harmless, not-a-bug, and several other categories. More than 75% of the
267 reviews classified issues as must fix, should fix or I will fix. Many of the scariest issues
268 received more than 10 reviews each.</p>
269 <p>Engineers have already submitted changes that made more than 1,100 of the 3,800 issues go
270 away. Engineers filed more than 1,700 bug reports, of which 600 have already been marked as
271 fixed Work continues on addressing the issues raised by the fixit, and on supporting the
272 integration of FindBugs into the software development process at Google.</p>
273 <p>The fixit at Google showcased new capabilities of FindBugs that provide a cloud computing /
274 social networking backdrop. Reviews of issues are immediately persisted into a central store,
275 where they can be seen by other developers, and FindBugs is integrated into the internal Google
276 tools for filing and viewing bug reports and for viewing the version control history of source
277 files. For the Fixit, FindBugs was configured in a mode where engineers could not see reviews
278 from other engineers until they had entered their own; after the fixit, the configuration will
279 be changed to a more open configuration where engineers can see reviews from others without
280 having to provide their own review first. These capabilities have all been contributed to UMD's
281 open source FindBugs tool, although a fair bit of engineering remains to prepare the
282 capabilities for general release and make sure they can integrate into systems outside of
283 Google. The new capabilities are expected to be ready for general release in Fall 2009.</p>
284 </li>
285 </ul>
286
287 <h2>
288 <a name="talks">Talks about FindBugs</a>
289 </h2>
290 <ul>
291 <li>
292 <a href="http://www.cs.umd.edu/~pugh/MistakesThatMatter.pdf">Mistakes That Matter</a>, JavaOne,
293 2009
294 </li>
295 <li><a href="http://youtu.be/jflQSFhYTEo?hd=1">Youtube video</a> showing of demo
296 of our 2.0 Eclipse plugin (5 minutes)</li>
297 <li><a href="http://findbugs.cs.umd.edu/talks/findbugs.mov">Quicktime movie</a> showing of demo
298 of our new GUI to view some of the null pointer bugs in Eclipse (Big file warning: 23 Megabytes)</li>
299 <li><a href="http://findbugs.cs.umd.edu/talks/JavaOne2007-TS2007.pdf">JavaOne 2007 talk on
300 Improving Software Quality Using Static Analysis</a></li>
301 <li><a href="http://findbugs.cs.umd.edu/talks/fb-sdbp-2006.pdf">Talk</a> Bill Pugh gave at <a
302 href="http://www.sdexpo.com/2006/sdbp/">SD Best Practices</a>, Sept 14th (more of a handle on
303 tutorial about using FindBugs)</li>
304 <li><a href="http://findbugs.cs.umd.edu/talks/fb-Sept1213-2006.pdf">Talk</a> Bill Pugh gave at
305 <a href="http://itasoftware.com/">ITA Software</a> and <a href="http://www.csail.mit.edu/">MIT</a>,
306 Sept 12th and 13th (more of a research focus)</li>
307 <li><a href="http://video.google.com/videoplay?docid=-8150751070230264609">Video of talk</a>
308 Bill Pugh gave at <a href="http://www.google.com">Google</a>, July 6th, 2006</li>
309 <li><a href="http://javaposse.com/index.php?post_id=95780">Java Posse podcast interview
310 with Bill Pugh and Brian Goetz</a></li>
311 </ul>
312 <h2>
313 <a name="papers">Papers about FindBugs</a>
314 </h2>
315 <ul>
316 <li><a href="http://findbugs.cs.umd.edu/papers/MoreNullPointerBugs07.pdf">Finding More Null
317 Pointer Bugs, But Not Too Many</a>, by <a href="http://faculty.ycp.edu/~dhovemey/">David
318 Hovemeyer</a>, York College of Pennsylvania and <a href="http://www.cs.umd.edu/~pugh/">William
319 Pugh</a>, Univ. of Maryland, <a href="http://paste07.cs.washington.edu/">7th ACM
320 SIGPLAN-SIGSOFT Workshop on Program Analysis for Software Tools and Engineering</a>, June, 2007</li>
321 <li><a href="http://findbugs.cs.umd.edu/papers/FindBugsExperiences07.pdf">Evaluating Static
322 Analysis Defect Warnings On Production Software,</a> <a href="http://www.cs.umd.edu/~nat/">Nathaniel
323 Ayewah</a> and <a href="http://www.cs.umd.edu/~pugh/">William Pugh</a>, Univ. of Maryland, and
324 J. David Morgenthaler, John Penix and YuQian Zhou, Google, Inc., <a
325 href="http://paste07.cs.washington.edu/">7th ACM SIGPLAN-SIGSOFT Workshop on Program
326 Analysis for Software Tools and Engineering</a>, June, 2007
327 </li>
328 </ul>
329
330 <h1>
331 <a name="sponsors">Contributors and Sponsors</a>
332 </h1>
333 <p>
334 The <a href="team.html">current development team</a> consists of <a
335 href="http://www.cs.umd.edu/~pugh">Bill Pugh</a> and <a
336 href="http://andrei.gmxhome.de/privat.html">Andrey Loskutov</a>.
337 </p>
338 <p>The most recent funding for FindBugs comes from a Google Faculty Research Awards.</p>
339 <h2>
340 <a name="support">Additional Support</a>
341 </h2>
342 <p>
343 Numerous <a =href="team.html">people</a> have made significant contributions to the FindBugs
344 project, including founding work by <a href="http://goose.ycp.edu/~dhovemey/">David Hovemeyer</a>
345 and the web cloud infrastructure by Keith Lea.
346 </p>
347 <p>
348 YourKit is kindly supporting open source projects with its full-featured Java Profiler. YourKit, LLC
349 is creator of innovative and intelligent tools for profiling Java and .NET applications. Take a look
350 at YourKit's leading software products: <a href="http://www.yourkit.com/java/profiler/index.jsp">YourKit
351 Java Profiler</a> and <a href="http://www.yourkit.com/.net/profiler/index.jsp">YourKit .NET
352 Profiler</a>.
353 </p>
354 <p>
355 The FindBugs project also uses <a href="http://www.atlassian.com/software/fisheye/">FishEye</a> and
356 <a href="http://www.atlassian.com/software/clover/">Clover</a>, which are generously provided by <a
357 href="http://www.cenqua.com/">Cenqua/Atlassian</a>.
358 </p>
359 <p>
360 Additional financial support for the FindBugs project was provided by <a href="http://www.nsf.gov">National
361 Science Foundation</a> grants ASC9720199 and CCR-0098162,
362 </p>
363 <p>Any opinions, findings and conclusions or recommendations expressed in this material are those of
364 the author(s) and do not necessarily reflect the views of the National Science Foundation (NSF).
365 </p>
366 @HTML_FOOTER@
367 </td>
368 </tr>
369 </table>
370
371 </body>
372 </html>