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>
|
|
|
|
|
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" />
|
2009-03-17 16:52:42 -04:00
|
|
|
<Method name="toBoolean" />
|
|
|
|
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" />
|
|
|
|
</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.StringUtils" />
|
2009-03-17 16:52:42 -04:00
|
|
|
<Method name="indexOfDifference"/>
|
|
|
|
<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: hashCode is lazily loaded in Range classes -->
|
|
|
|
<!-- TODO: Work out why regex didn't work here -->
|
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.math.DoubleRange" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Field name="hashCode" />
|
|
|
|
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.math.FloatRange" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Field name="hashCode" />
|
|
|
|
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.math.IntRange" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Field name="hashCode" />
|
|
|
|
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.math.LongRange" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Field name="hashCode" />
|
|
|
|
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
|
|
|
</Match>
|
|
|
|
<Match>
|
2009-12-10 07:09:00 -05:00
|
|
|
<Class name="org.apache.commons.lang3.math.NumberRange" />
|
2009-05-16 04:16:29 -04:00
|
|
|
<Field name="hashCode" />
|
|
|
|
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<!-- Reason: Testing shows that new Integer(...) etc is quicker than Integer.valueOf -->
|
|
|
|
<Match>
|
|
|
|
<Bug pattern="DM_NUMBER_CTOR" />
|
2009-03-17 19:51:21 -04:00
|
|
|
</Match>
|
|
|
|
|
2009-03-17 16:52:42 -04:00
|
|
|
</FindBugsFilter>
|