hbase/dev-support/findbugs-exclude.xml

114 lines
3.4 KiB
XML

<!--
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.
-->
<FindBugsFilter>
<Match>
<Package name="org.apache.hadoop.hbase.thrift2.generated"/>
</Match>
<Match>
<Package name="org.apache.hadoop.hbase.thrift.generated"/>
</Match>
<Match>
<Package name="org.apache.hadoop.hbase.rest.protobuf.generated"/>
</Match>
<Match>
<Package name="org.apache.hadoop.hbase.protobuf.generated"/>
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost" />
<Or>
<Method name="preExists" />
<Method name="preCheckAndPut" />
<Method name="preCheckAndDelete" />
<Method name="preScannerNext" />
</Or>
<Bug pattern="NP_BOOLEAN_RETURN_NULL" />
</Match>
<!-- This is read by a thread from hadoop and findbugs never finds it -->
<Match>
<Bug code="UrF"/>
<Class name="org.apache.hadoop.hbase.metrics.BaseMetricsSourceImpl"/>
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.regionserver.StoreFile$Writer" />
<Bug pattern="NP_NULL_PARAM_DEREF" />
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader"/>
<Or>
<Method name="addFileInfoToException" />
</Or>
<Bug pattern="REC_CATCH_EXCEPTION" />
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.KeyValue"/>
<Or>
<Method name="createEmptyByteArray" />
<Method name="createByteArray" />
</Or>
<Bug pattern="INT_VACUOUS_COMPARISON" />
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.regionserver.LruHashMap"/>
<Or>
<Method name="equals" />
</Or>
<Bug pattern="EQ_UNUSUAL" />
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.util.ByteBufferUtils"/>
<Or>
<Method name="putInt" />
</Or>
<Bug pattern="ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT" />
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.mapreduce.MultithreadedTableMapper"/>
<Or>
<Method name="MapRunner" />
</Or>
<Bug pattern="REC_CATCH_EXCEPTION" />
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.util.PoolMap$RoundRobinPool"/>
<Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS" />
</Match>
<Match>
<Class name="org.apache.hadoop.hbase.regionserver.HRegion" />
<Or>
<Method name="startRegionOperation" />
<Method name="startBulkRegionOperation" />
</Or>
<Bug pattern="UL_UNRELEASED_LOCK" />
</Match>
</FindBugsFilter>