You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2016/11/01 19:47:56 UTC

[18/50] hbase git commit: HBASE-16535 Use regex to exclude generated classes for findbugs

HBASE-16535 Use regex to exclude generated classes for findbugs


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/5a1b3a54
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5a1b3a54
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5a1b3a54

Branch: refs/heads/0.98
Commit: 5a1b3a548e2b6597d5bd3272de2afbf0bef8393d
Parents: d52cb68
Author: zhangduo <zh...@apache.org>
Authored: Wed Aug 31 12:01:14 2016 +0800
Committer: zhangduo <zh...@apache.org>
Committed: Wed Aug 31 15:01:55 2016 +0800

----------------------------------------------------------------------
 dev-support/findbugs-exclude.xml | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5a1b3a54/dev-support/findbugs-exclude.xml
----------------------------------------------------------------------
diff --git a/dev-support/findbugs-exclude.xml b/dev-support/findbugs-exclude.xml
index b47ef46..f551428 100644
--- a/dev-support/findbugs-exclude.xml
+++ b/dev-support/findbugs-exclude.xml
@@ -16,36 +16,16 @@
 -->
 
 <FindBugsFilter>
+  <!-- Nested packages are not included by the Package filter, so we need a regexp... -->
   <Match>
-    <Package name="org.apache.hadoop.hbase.thrift2.generated"/>
+    <Class name="~.*\.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>
-    <Package name="org.apache.hadoop.hbase.coprocessor.example.generated"/>
-  </Match>
-
-  <Match>
-    <!-- Nested packages are not included by the filter, so we need a regexp... -->
     <Package name="~org\.apache\.hadoop\.hbase\.tmpl\..*"/>
   </Match>
 
   <Match>
-    <Package name="~org\.apache\.hadoop\.hbase\.generated\..*"/>
-  </Match>
-
-  <Match>
     <Class name="org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost"/>
     <Or>
       <Method name="preExists"/>