Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(968)

Unified Diff: doc/manual.xml

Issue 1232833004: Update findbugs from 3.0.0 to 3.0.1. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/findbugs.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« README.chromium ('K') | « doc/mailingLists.html ('k') | doc/manual.xsl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: doc/manual.xml
diff --git a/doc/manual.xml b/doc/manual.xml
index e36db9d04cdc41da8192112bd7029700a7daa097..2cd779bb51e318b9b877df093e5030a11a75e8af 100644
--- a/doc/manual.xml
+++ b/doc/manual.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
- "file:../etc/docbook/docbookx.dtd" [
+ "../../etc/docbook/docbookx.dtd" [
<!ENTITY FindBugs "<application>FindBugs</application>">
<!ENTITY Ant "<application>Ant</application>">
<!ENTITY Saxon "<application>Saxon</application>">
@@ -44,9 +44,9 @@ The name FindBugs and the FindBugs logo are trademarked by the University of Mar
</para>
</legalnotice>
-<edition>2.0.3</edition>
+<edition>3.0.1</edition>
-<pubdate>17:16:15 EST, 22 November, 2013</pubdate>
+<pubdate>12:37:51 EST, 06 March, 2015</pubdate>
</bookinfo>
@@ -62,7 +62,7 @@ The name FindBugs and the FindBugs logo are trademarked by the University of Mar
<para> &FindBugs;&trade; is a program to find bugs in Java programs. It looks for instances
of "bug patterns" --- code instances that are likely to be errors.</para>
-<para> This document describes version 2.0.3 of &FindBugs;.We
+<para> This document describes version 3.0.1 of &FindBugs;.We
are very interested in getting your feedback on &FindBugs;. Please visit
the <ulink url="http://findbugs.sourceforge.net">&FindBugs; web page</ulink> for
the latest information on &FindBugs;, contact information, and support resources such
@@ -100,31 +100,31 @@ This chapter explains how to install &FindBugs;.
<para>
The easiest way to install &FindBugs; is to download a binary distribution.
Binary distributions are available in
-<ulink url="http://prdownloads.sourceforge.net/findbugs/findbugs-2.0.3.tar.gz?download">gzipped tar format</ulink> and
-<ulink url="http://prdownloads.sourceforge.net/findbugs/findbugs-2.0.3.zip?download">zip format</ulink>.
+<ulink url="http://prdownloads.sourceforge.net/findbugs/findbugs-3.0.1.tar.gz?download">gzipped tar format</ulink> and
+<ulink url="http://prdownloads.sourceforge.net/findbugs/findbugs-3.0.1.zip?download">zip format</ulink>.
Once you have downloaded a binary distribution, extract it into a directory of your choice.
</para>
<para>
Extracting a gzipped tar format distribution:
<screen>
-<prompt>$ </prompt><command>gunzip -c findbugs-2.0.3.tar.gz | tar xvf -</command>
+<prompt>$ </prompt><command>gunzip -c findbugs-3.0.1.tar.gz | tar xvf -</command>
</screen>
</para>
<para>
Extracting a zip format distribution:
<screen>
-<prompt>C:\Software></prompt><command>unzip findbugs-2.0.3.zip</command>
+<prompt>C:\Software></prompt><command>unzip findbugs-3.0.1.zip</command>
</screen>
</para>
<para>
Usually, extracting a binary distribution will create a directory ending in
-<filename class="directory">findbugs-2.0.3</filename>. For example, if you extracted
+<filename class="directory">findbugs-3.0.1</filename>. For example, if you extracted
the binary distribution from the <filename class="directory">C:\Software</filename>
directory, then the &FindBugs; software will be extracted into the directory
-<filename class="directory">C:\Software\findbugs-2.0.3</filename>.
+<filename class="directory">C:\Software\findbugs-3.0.1</filename>.
This directory is the &FindBugs; home directory. We'll refer to it as
&FBHome; (or &FBHomeWin; for Windows) throughout this manual.
</para>
@@ -155,7 +155,7 @@ To compile &FindBugs; from source, you will need the following:
<itemizedlist>
<listitem>
<para>
- The <ulink url="http://prdownloads.sourceforge.net/findbugs/findbugs-2.0.3-source.zip?download"
+ The <ulink url="http://prdownloads.sourceforge.net/findbugs/findbugs-3.0.1-source.zip?download"
>&FindBugs; source distribution</ulink>
</para>
</listitem>
@@ -218,7 +218,7 @@ After you download the source distribution, you'll need to extract it into
a working directory. A typical command to do this is:
<screen>
-<prompt>$ </prompt><command>unzip findbugs-2.0.3-source.zip</command>
+<prompt>$ </prompt><command>unzip findbugs-3.0.1-source.zip</command>
</screen>
</para>
@@ -939,6 +939,36 @@ These options are only accepted by the Text User Interface.
</varlistentry>
<varlistentry>
+ <term><command>-auxclasspathFromInput</command> </term>
+ <listitem>
+ <para>
+ Read the auxiliary classpath for analysis from standard input, each line adds new
+ entry to the auxiliary classpath for analysis.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><command>-auxclasspathFromFile</command> <replaceable>filepath</replaceable></term>
+ <listitem>
+ <para>
+ Read the auxiliary classpath for analysis from file, each line adds new
+ entry to the auxiliary classpath for analysis.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><command>-analyzeFromFile</command> <replaceable>filepath</replaceable></term>
+ <listitem>
+ <para>
+ Read the files to analyze from file, each line adds new
+ entry to the classpath for analysis.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><command>-userPrefs</command> <replaceable>edu.umd.cs.findbugs.core.prefs</replaceable></term>
<listitem>
<para>
@@ -1416,13 +1446,24 @@ using the &FindBugs; task.
<term><literal>omitVisitors</literal></term>
<listitem>
<para>
- Optional attribute. It is like the <literal>visitors</literal> attribute,
+ Optional attribute. It specifies a comma-separated list of bug detectors.
+ It is like the <literal>visitors</literal> attribute,
except it specifies detectors which will <emphasis>not</emphasis> be run.
</para>
</listitem>
</varlistentry>
<varlistentry>
+ <term><literal>chooseVisitors</literal></term>
+ <listitem>
+ <para>
+ Optional attribute. It specifies a comma-separated list of bug detectors
+ prefixed with "+" or "-" to selectively enable/disable them.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><literal>excludeFilter</literal></term>
<listitem>
<para>
@@ -1539,6 +1580,27 @@ using the &FindBugs; task.
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><literal>nested</literal></term>
+ <listitem>
+ <para>
+ Optional attribute which enables or disables scanning of nested jar and zip files found in
+ the list of files and directories to be analyzed.
+ By default, scanning of nested jar/zip files is enabled.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><literal>setExitCode</literal></term>
+ <listitem>
+ <para>
+ Optional boolean attribute. Whether the exit code will be returned to
+ the main ant job. Defaults to "true".
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
@@ -1565,7 +1627,7 @@ using the &FindBugs; task.
The FindBugs Eclipse plugin allows &FindBugs; to be used within
the <ulink url="http://www.eclipse.org/">Eclipse</ulink> IDE.
The FindBugs Eclipse plugin was generously contributed by Peter Friese.
-Phil Crosby and Andrei Loskutov contributed major improvements
+Phil Crosby and Andrey Loskutov contributed major improvements
to the plugin.
</para>
@@ -1617,10 +1679,10 @@ and JRE/JDK 1.5 or later.
<para>You can also manually
download the plugin from the following link:
-<ulink url="http://prdownloads.sourceforge.net/findbugs/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131122.zip?download"
->http://prdownloads.sourceforge.net/findbugs/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131122.zip?download</ulink>.
+<ulink url="http://prdownloads.sourceforge.net/findbugs/edu.umd.cs.findbugs.plugin.eclipse_3.0.1.20150306.zip?download"
+>http://prdownloads.sourceforge.net/findbugs/edu.umd.cs.findbugs.plugin.eclipse_3.0.1.20150306.zip?download</ulink>.
Extract it in Eclipse's "plugins" subdirectory.
-(So &lt;eclipse_install_dir&gt;/plugins/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131122/findbugs.png
+(So &lt;eclipse_install_dir&gt;/plugins/edu.umd.cs.findbugs.plugin.eclipse_3.0.1.20150306/findbugs.png
should be the path to the &FindBugs; logo.)
</para>
@@ -1694,7 +1756,7 @@ Options you may choose include:
<title>Extending the Eclipse Plugin (since 2.0.0)</title>
<para>
Eclipse plugin supports contribution of custom &FindBugs; detectors (see also
-<ulink url="http://code.google.com/p/findbugs/source/browse/trunk/findbugs/src/doc/AddingDetectors.txt">AddingDetectors.txt</ulink>
+<ulink url="http://code.google.com/p/findbugs/source/browse/findbugs/src/doc/AddingDetectors.txt">AddingDetectors.txt</ulink>
for more information). There are two ways to contribute custom plugins to the Eclipse:
</para>
<itemizedlist>
@@ -1705,7 +1767,7 @@ for more information). There are two ways to contribute custom plugins to the Ec
<guimenu>Window</guimenu>
<guimenuitem>Preferences</guimenuitem>
<guimenuitem>Java</guimenuitem>
- <guimenuitem>&FindBugs;</guimenuitem>
+ <guimenuitem>FindBugs</guimenuitem>
<guimenuitem>Misc. Settings</guimenuitem>
<guimenuitem>Custom Detectors</guimenuitem>
</menuchoice>.
@@ -1727,7 +1789,7 @@ for more information). There are two ways to contribute custom plugins to the Ec
<para>
Please check the documentation of the
- <ulink url="http://code.google.com/p/findbugs/source/browse/trunk/eclipsePlugin/schema/detectorPlugins.exsd">
+ <ulink url="http://code.google.com/p/findbugs/source/browse/eclipsePlugin/schema/detectorPlugins.exsd">
findBugsEclipsePlugin/schema/detectorPlugins.exsd</ulink>
extension point how to update the plugin.xml. Existing &FindBugs; detector plugins can
be easily "extended" to be full featured &FindBugs; AND Eclipse detector plugins.
@@ -1743,7 +1805,7 @@ for more information). There are two ways to contribute custom plugins to the Ec
Eclipse plugin. You can do this even for third-party detector packages.
Another major differentiator is the ability to extend the default FindBugs
classpath at runtime with required third party libraries (see
- <ulink url="http://code.google.com/p/findbugs/source/browse/trunk/findbugs/src/doc/AddingDetectors.txt">AddingDetectors.txt</ulink>
+ <ulink url="http://code.google.com/p/findbugs/source/browse/findbugs/src/doc/AddingDetectors.txt">AddingDetectors.txt</ulink>
for more information).
</para>
</listitem>
@@ -1802,14 +1864,6 @@ This section lists common problems with the plugin and (if known) how to resolve
<para>
Filter files may be used to include or exclude bug reports for particular classes
and methods. This chapter explains how to use filter files.
-
-<note>
-<title>Planned Features</title>
-<para>
- Filters are currently only supported by the Command Line interface.
- Eventually, filter support will be added to the GUI.
-</para>
-</note>
</para>
@@ -1932,7 +1986,7 @@ In other words, each of the children must be true for the predicate to be true.
<para>
This element matches warnings associated with a particular class. The
<literal>name</literal> attribute is used to specify the exact or regex match pattern
- for the class name.
+ for the class name. The <literal>role</literal> attribute is the class role.
</para>
<para>
@@ -1952,13 +2006,25 @@ In other words, each of the children must be true for the predicate to be true.
</varlistentry>
<varlistentry>
+ <term><literal>&lt;Source&gt;</literal></term>
+ <listitem>
+ <para>
+ This element matches warnings associated with a particular source file. The
+ <literal>name</literal> attribute is used to specify the exact or regex match pattern
+ for the source file name.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><literal>&lt;Method&gt;</literal></term>
<listitem><para>This element specifies a method. The <literal>name</literal> is used to specify
the exact or regex match pattern for the method name.
The <literal>params</literal> attribute is a comma-separated list
of the types of the method's parameters. The <literal>returns</literal> attribute is
- the method's return type. In <literal>params</literal> and <literal>returns</literal>, class names
+ the method's return type. The <literal>role</literal> attribute is
+ the method role. In <literal>params</literal> and <literal>returns</literal>, class names
must be fully qualified. (E.g., "java.lang.String" instead of just
"String".) If one of the latter attributes is specified the other is required for creating a method signature.
Note that you can provide either <literal>name</literal> attribute or <literal>params</literal>
@@ -1973,7 +2039,8 @@ In other words, each of the children must be true for the predicate to be true.
<listitem><para>This element specifies a field. The <literal>name</literal> attribute is is used to specify
the exact or regex match pattern for the field name. You can also filter fields according to their signature -
use <literal>type</literal> attribute to specify fully qualified type of the field. You can specify eiter or both
- of these attributes in order to perform name / signature based matches.
+ of these attributes in order to perform name / signature based matches. The <literal>role</literal> attribute is
+ the field role.
</para></listitem>
</varlistentry>
@@ -1996,8 +2063,8 @@ In other words, each of the children must be true for the predicate to be true.
<term><literal>&lt;And&gt;</literal></term>
<listitem><para>
This element combines <literal>Match</literal> clauses which both must evaluate to true. I.e., you can put
- <literal>Bug</literal> and <literal>Priority</literal> elements in an <literal>And</literal> clause in order
- to match specific bugs with given priority only.
+ <literal>Bug</literal> and <literal>Confidence</literal> elements in an <literal>And</literal> clause in order
+ to match specific bugs with given confidence only.
</para></listitem>
</varlistentry>
<varlistentry>
@@ -2016,8 +2083,9 @@ In other words, each of the children must be true for the predicate to be true.
<title>Java element name matching</title>
<para>
-If the <literal>name</literal> attribute of <literal>Class</literal>, <literal>Method</literal> or
-<literal>Field</literal> starts with the ~ character the rest of attribute content is interpreted as
+If the <literal>name</literal> attribute of <literal>Class</literal>, <literal>Source</literal>,
+<literal>Method</literal> or <literal>Field</literal> starts with the ~ character
+the rest of attribute content is interpreted as
a Java regular expression that is matched against the names of the Java element in question.
</para>
@@ -2259,6 +2327,21 @@ as expected.
</programlisting>
</para>
+<para>
+ 12. Full exclusion filter file to match all classes generated from Groovy source files.
+
+<programlisting>
+<![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
+<FindBugsFilter>
+<Match>
+ <Source name="~.*\.groovy" />
+</Match>
+</FindBugsFilter>
+]]>
+</programlisting>
+</para>
+
</sect1>
<sect1>
@@ -2461,7 +2544,9 @@ files in the classpath while compiling your program.
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.CheckForNull</command></term>
<listitem>
-<command>[Target]</command> Field, Method, Parameter
+ <para>
+ <command>[Target]</command> Field, Method, Parameter
+ </para>
</listitem>
<listitem>
<para>
@@ -2474,7 +2559,9 @@ When this annotation is applied to a method it applies to the method return valu
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.CheckReturnValue</command></term>
<listitem>
+ <para>
<command>[Target]</command> Method, Constructor
+ </para>
</listitem>
<listitem>
<variablelist>
@@ -2503,7 +2590,9 @@ This annotation is used to denote a method whose return value should always be c
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.DefaultAnnotation</command></term>
<listitem>
- <command>[Target]</command> Type, Package
+ <para>
+ <command>[Target]</command> Type, Package
+ </para>
</listitem>
<listitem>
<variablelist>
@@ -2536,7 +2625,9 @@ on those parameters, methods or fields that you want to allow to be null.
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.DefaultAnnotationForFields</command></term>
<listitem>
+ <para>
<command>[Target]</command> Type, Package
+ </para>
</listitem>
<listitem>
<variablelist>
@@ -2565,7 +2656,9 @@ This is same as the DefaultAnnotation except it only applys to fields.
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.DefaultAnnotationForMethods</command></term>
<listitem>
+ <para>
<command>[Target]</command> Type, Package
+ </para>
</listitem>
<listitem>
<variablelist>
@@ -2594,7 +2687,9 @@ This is same as the DefaultAnnotation except it only applys to methods.
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.DefaultAnnotationForParameters</command></term>
<listitem>
+ <para>
<command>[Target]</command> Type, Package
+ </para>
</listitem>
<listitem>
<variablelist>
@@ -2623,7 +2718,9 @@ This is same as the DefaultAnnotation except it only applys to method parameters
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.NonNull</command></term>
<listitem>
+ <para>
<command>[Target]</command> Field, Method, Parameter
+ </para>
</listitem>
<listitem>
<para>
@@ -2636,7 +2733,9 @@ Annotated fields must not be null after construction has completed. Annotated me
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.Nullable</command></term>
<listitem>
+ <para>
<command>[Target]</command> Field, Method, Parameter
+ </para>
</listitem>
<listitem>
<para>
@@ -2646,7 +2745,7 @@ acceptable and whether it is neccessary to check for a null value. FindBugs wil
treat the annotated items as though they had no annotation.
</para>
<para>
-In pratice this annotation is useful only for overriding an overarching NonNull
+In practice this annotation is useful only for overriding an overarching NonNull
annotation.
</para>
</listitem>
@@ -2655,7 +2754,9 @@ annotation.
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.OverrideMustInvoke</command></term>
<listitem>
+ <para>
<command>[Target]</command> Method
+ </para>
</listitem>
<listitem>
<variablelist>
@@ -2693,7 +2794,9 @@ This annotation is deprecated. Use CheckForNull instead.
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.SuppressWarnings</command></term>
<listitem>
+ <para>
<command>[Target]</command> Type, Field, Method, Parameter, Constructor, Package
+ </para>
</listitem>
<listitem>
<variablelist>
@@ -2728,7 +2831,9 @@ are encouraged to cooperate to ensure that the same names work across multiple c
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.UnknownNullness</command></term>
<listitem>
+ <para>
<command>[Target]</command> Field, Method, Parameter
+ </para>
</listitem>
<listitem>
<para>
@@ -2740,7 +2845,9 @@ Used to indicate that the nullness of the target is unknown, or my vary in unkno
<varlistentry>
<term><command>edu.umd.cs.findbugs.annotations.UnknownNullness</command></term>
<listitem>
+ <para>
<command>[Target]</command> Field, Method, Parameter
+ </para>
</listitem>
<listitem>
<para>
@@ -2753,10 +2860,10 @@ Used to indicate that the nullness of the target is unknown, or my vary in unkno
<para>
&FindBugs; also supports the following annotations:
<itemizedlist>
- <listitem>net.jcip.annotations.GuardedBy</listitem>
- <listitem>net.jcip.annotations.Immutable</listitem>
- <listitem>net.jcip.annotations.NotThreadSafe</listitem>
- <listitem>net.jcip.annotations.ThreadSafe</listitem>
+ <listitem><para>net.jcip.annotations.GuardedBy</para></listitem>
+ <listitem><para>net.jcip.annotations.Immutable</para></listitem>
+ <listitem><para>net.jcip.annotations.NotThreadSafe</para></listitem>
+ <listitem><para>net.jcip.annotations.ThreadSafe</para></listitem>
</itemizedlist>
</para>
<para>
@@ -3766,8 +3873,8 @@ contributed the string concatenation detector.</para>
<para>Thomas Klaeger contributed a number of bug fixes and
bug detector improvements.</para>
-<para>Andrei Loskutov made a number of improvements to the
-Eclipse plugin.</para>
+<para>Andrey Loskutov made a number of bug fixes and
+bug detector improvements. He is maintainer of the Eclipse plugin.</para>
<para>Brian Goetz contributed a major refactoring of the
visitor classes to improve readability and understandability.</para>
@@ -3852,6 +3959,10 @@ and fixed a bug related to renaming the Eclipse plugin ID.</para>
<para>Dieter von Holten (dvholten) contributed
some German improvements to findbugs_de.properties.</para>
+<para>Kevin Lubick contributed fixes and tests for multi-quick-fixes and customizable
+annotation colors for Eclipse plugin.</para>
+
+<para>Tagir Valeev contributed several new bug detectors and improved existing ones.</para>
<para>If you have contributed to &FindBugs;, but aren't mentioned above,
please send email to <email>findbugs@cs.umd.edu</email> (and also accept
« README.chromium ('K') | « doc/mailingLists.html ('k') | doc/manual.xsl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698