Define Findbugs exlucde for internally used map key class

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1671628 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2015-04-06 18:16:37 +00:00
parent 173c162a45
commit 9106f4ed5a
1 changed files with 13 additions and 0 deletions

View File

@ -141,4 +141,17 @@
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
</Match>
<!-- Reason: Internal class that is used only as a key for an internal FormatCache. For this reason we can
be sure, that equals will never be called with null or types other than MultipartKey.
-->
<Match>
<Class name="org.apache.commons.lang3.time.FormatCache$MultipartKey" />
<Method name="equals" />
<Bug pattern="BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS" />
</Match>
<Match>
<Class name="org.apache.commons.lang3.time.FormatCache$MultipartKey" />
<Method name="equals" />
<Bug pattern="NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT" />
</Match>
</FindBugsFilter>