Ignore findbugs in AutoValue generated classes

Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/62529b7b
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/62529b7b
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/62529b7b

Branch: refs/heads/master
Commit: 62529b7b327de7c356a9b109992f82816f79fb30
Parents: 3a64e91
Author: Kenneth Knowles <[email protected]>
Authored: Thu Oct 19 20:26:41 2017 -0700
Committer: Kenneth Knowles <[email protected]>
Committed: Fri Oct 20 14:51:42 2017 -0700

----------------------------------------------------------------------
 .../build-tools/src/main/resources/beam/findbugs-filter.xml   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/62529b7b/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml
----------------------------------------------------------------------
diff --git a/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml 
b/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml
index bf10571..e7ad509 100644
--- a/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml
+++ b/sdks/java/build-tools/src/main/resources/beam/findbugs-filter.xml
@@ -26,13 +26,18 @@
   <!-- The uncallable method error fails on @ProcessElement style methods -->
   <Bug pattern="UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS"/>
 
+  <!-- Suppress checking of AutoValue internals -->
+  <Match>
+    <Class name="~.*AutoValue_.*"/>
+  </Match>
+
   <!--
           Suppressed findbugs issues. All new issues should include a comment 
why they're
           suppressed.
 
           Suppressions should go in this file rather than inline using 
@SuppressFBWarnings to avoid
           unapproved artifact license.
-        -->
+       -->
   <Match>
     <Class 
name="org.apache.beam.fn.harness.control.BeamFnControlClient$InboundObserver"/>
     <Method name="onCompleted"/>

Reply via email to