2009-03-17 16:52:42 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
This file contains some false positive bugs detected by findbugs. Their
|
|
|
|
false positive nature has been analyzed individually and they have been
|
|
|
|
put here to instruct findbugs it must ignore them.
|
|
|
|
-->
|
|
|
|
<FindBugsFilter>
|
|
|
|
|
2019-07-18 10:13:22 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.ArrayUtils" />
|
|
|
|
<Method name="addFirst" />
|
|
|
|
<Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE" />
|
|
|
|
</Match>
|
|
|
|
|
2009-05-16 04:16:29 -04:00
|
|
|
<!-- Reason: Optimization to use == -->
|
2009-03-17 16:52:42 -04:00
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.BooleanUtils" />
|
2011-04-10 12:53:39 -04:00
|
|
|
<Or>
|
|
|
|
<Method name="toBoolean" />
|
|
|
|
<Method name="toBooleanObject" />
|
|
|
|
</Or>
|
2009-03-17 16:52:42 -04:00
|
|
|
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" />
|
|
|
|
</Match>
|
2011-04-10 12:53:39 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.BooleanUtils" />
|
|
|
|
<Method name="toBoolean" />
|
|
|
|
<Bug pattern="RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN" />
|
|
|
|
</Match>
|
|
|
|
|
|
|
|
<!-- Reason: Behavior documented in javadoc -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.BooleanUtils" />
|
|
|
|
<Or>
|
|
|
|
<Method name="negate" />
|
|
|
|
<Method name="toBooleanObject" />
|
|
|
|
</Or>
|
|
|
|
<Bug pattern="NP_BOOLEAN_RETURN_NULL" />
|
|
|
|
</Match>
|
|
|
|
|
|
|
|
<!-- Reason: base class cannot be changed and field is properly checked against null so behavior is OK -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.text.ExtendedMessageFormat" />
|
|
|
|
<Method name="applyPattern" />
|
|
|
|
<Bug pattern="UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR" />
|
|
|
|
</Match>
|
2009-03-17 16:52:42 -04:00
|
|
|
|
2009-05-16 04:16:29 -04:00
|
|
|
<!-- Reason: Optimization to use == -->
|
2009-03-17 16:52:42 -04:00
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.StringUtils" />
|
2017-04-01 04:44:39 -04:00
|
|
|
<Or>
|
|
|
|
<Method name="indexOfDifference"/>
|
|
|
|
<Method name="compare" params="java.lang.String,java.lang.String,boolean"/>
|
|
|
|
<Method name="compareIgnoreCase" params="java.lang.String,java.lang.String,boolean"/>
|
|
|
|
</Or>
|
2009-03-17 16:52:42 -04:00
|
|
|
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" />
|
|
|
|
</Match>
|
|
|
|
|
2009-05-16 04:16:29 -04:00
|
|
|
<!-- Reason: Very much intended to do a fall through on the switch -->
|
2009-03-17 19:51:21 -04:00
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.math.NumberUtils" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Method name="createNumber"/>
|
|
|
|
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
|
2009-03-17 19:51:21 -04:00
|
|
|
</Match>
|
|
|
|
|
2009-05-16 04:16:29 -04:00
|
|
|
<!-- Reason: Very much intended to do a fall through on the switch -->
|
2009-03-17 19:51:21 -04:00
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.time.DateUtils" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Method name="getFragment"/>
|
|
|
|
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
|
|
|
|
</Match>
|
|
|
|
|
|
|
|
<!-- Reason: toProperString is lazily loaded -->
|
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.math.Fraction" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Field name="toProperString" />
|
|
|
|
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
|
|
|
</Match>
|
|
|
|
|
|
|
|
<!-- Reason: It does call super.clone(), but via a subsequent method -->
|
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.text.StrTokenizer" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Method name="clone"/>
|
|
|
|
<Bug pattern="CN_IDIOM_NO_SUPER_CALL" />
|
|
|
|
</Match>
|
|
|
|
|
2013-10-28 15:06:16 -04:00
|
|
|
<!-- Reason: FindBugs 2.0.2 used in maven-findbugs-plugin 2.5.2 seems to have problems with detection of default cases
|
|
|
|
in switch statements. All the excluded methods have switch statements that conatin a default case. -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.math.NumberUtils"/>
|
|
|
|
<Method name="createNumber" />
|
|
|
|
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
|
|
|
|
</Match>
|
2017-04-01 05:18:53 -04:00
|
|
|
<!-- Reason: FindBugs does not correctly recognize default branches in switch statements without break statements.
|
|
|
|
See, e.g., the report at https://sourceforge.net/p/findbugs/bugs/1298 -->
|
2013-10-28 15:06:16 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.time.FastDateParser"/>
|
2017-04-01 05:18:53 -04:00
|
|
|
<Or>
|
|
|
|
<Method name="getStrategy" />
|
|
|
|
<Method name="simpleQuote" params="java.lang.StringBuilder, java.lang.String"/>
|
|
|
|
</Or>
|
2013-10-28 15:06:16 -04:00
|
|
|
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
|
|
|
|
</Match>
|
|
|
|
|
2017-04-01 05:18:53 -04:00
|
|
|
<!-- Reason: FindBugs cannot correctly recognize default branches in switch statements without break statements.
|
|
|
|
See, e.g., the report at https://sourceforge.net/p/findbugs/bugs/1298 -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.time.FastDatePrinter"/>
|
|
|
|
<Method name="appendFullDigits" params="java.lang.Appendable, int, int"/>
|
|
|
|
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
|
|
|
|
</Match>
|
|
|
|
|
2017-09-21 06:28:09 -04:00
|
|
|
<!-- Reason: The fallthrough on the swich statement is intentional -->
|
2017-04-01 05:38:54 -04:00
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.time.FastDatePrinter"/>
|
|
|
|
<Method name="appendFullDigits" params="java.lang.Appendable, int, int"/>
|
|
|
|
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
|
|
|
|
</Match>
|
|
|
|
|
2015-04-06 14:16:37 -04:00
|
|
|
<!-- 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>
|
2020-01-01 09:31:22 -05:00
|
|
|
|
|
|
|
<!-- Reason: toString() can return null! -->
|
|
|
|
<Match>
|
|
|
|
<Class name="org.apache.commons.lang3.compare.ObjectToStringComparator" />
|
|
|
|
<Method name="compare" />
|
|
|
|
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
|
|
|
|
</Match>
|
2009-03-17 16:52:42 -04:00
|
|
|
</FindBugsFilter>
|