Repository: hbase
Updated Branches:
  refs/heads/branch-1.3 af59baba1 -> 3c5d01c3e


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/3c5d01c3
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3c5d01c3
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3c5d01c3

Branch: refs/heads/branch-1.3
Commit: 3c5d01c3e42e0ec4d7483b6dd2e335ce5c8f3331
Parents: af59bab
Author: zhangduo <[email protected]>
Authored: Wed Aug 31 12:01:14 2016 +0800
Committer: zhangduo <[email protected]>
Committed: Wed Aug 31 14:42:45 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/3c5d01c3/dev-support/findbugs-exclude.xml
----------------------------------------------------------------------
diff --git a/dev-support/findbugs-exclude.xml b/dev-support/findbugs-exclude.xml
index b2a609a..aa9c5d7 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"/>

Reply via email to