Update findbugs.xml to suppress useless warnings.

This commit is contained in:
Mike Hearn 2013-02-28 18:38:16 +01:00
parent f9a57db818
commit 93d8a8da1f

View File

@ -16,15 +16,33 @@
<FindBugsFilter>
<Match>
<!-- Protos and inner classes are generated by the proto compiler -->
<Package name="org.bitcoinj.protos"/>
<Package name="org.bitcoin.protocols.payments"/>
<Package name="org.bitcoinj.protos"/>
<Package name="org.bitcoin.protocols.payments"/>
</Match>
<!-- bitcoinj is not designed to run in an environment with malicious code loaded into the VM -->
<Bug category="MALICIOUS_CODE"/>
<Match>
<Bug category="MALICIOUS_CODE"/>
</Match>
<!-- Ignore serialization bugs for now, it's not a high priority anymore -->
<Match>
<Bug code="Se"/>
</Match>
<!-- This is flagging a valid issue but the real bug is in the JDK. See issue 173. -->
<Bug pattern="LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE"/>
<Match>
<Bug pattern="LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE"/>
</Match>
<!-- The code is correct but findbugs can't analyze it properly -->
<Match>
<Bug code="SF"/>
<Class name="com.google.bitcoin.core.BloomFilter"/>
</Match>
<!-- fb doesn't like the odd API this class has -->
<Match>
<Class name="~.*SendRequest.*"/>
</Match>
</FindBugsFilter>