Exclude SF_SWITCH_FALLTHROUGH on FastDatePrinter

FastDatePrinter#appendFullDigits uses a switch statement that
intentionally falls through the cases.
This patch adds a FindBugs suppression for it.
This commit is contained in:
Allon Mureinik 2017-04-01 12:38:54 +03:00 committed by pascalschumacher
parent c40dcf6598
commit 4d343ccc11
1 changed files with 7 additions and 0 deletions

View File

@ -150,6 +150,13 @@
<Bug pattern="SF_SWITCH_NO_DEFAULT" /> <Bug pattern="SF_SWITCH_NO_DEFAULT" />
</Match> </Match>
<!-- Reason: The fallthrough on the swich stateme is intentional -->
<Match>
<Class name="org.apache.commons.lang3.time.FastDatePrinter"/>
<Method name="appendFullDigits" params="java.lang.Appendable, int, int"/>
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
</Match>
<!-- Reason: Internal class that is used only as a key for an internal FormatCache. For this reason we can <!-- 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. be sure, that equals will never be called with null or types other than MultipartKey.
--> -->