Repository: hadoop
Updated Branches:
  refs/heads/branch-2 97244b143 -> 5f59e621b


YARN-2901 addendum: Fixed findbugs warning caused by previously patch

(cherry picked from commit ba9ee22ca4ed2c5ff447b66b2e2dfe25f6880fe0)


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

Branch: refs/heads/branch-2
Commit: 5f59e621ba8851be981d2533935c2d56c9a6757b
Parents: 97244b1
Author: Wangda Tan <wan...@apache.org>
Authored: Wed Apr 8 11:02:06 2015 -0700
Committer: Wangda Tan <wan...@apache.org>
Committed: Wed Apr 8 11:02:54 2015 -0700

----------------------------------------------------------------------
 .../hadoop-yarn/dev-support/findbugs-exclude.xml         | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/5f59e621/hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml 
b/hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml
index 943ecb0..375d19c 100644
--- a/hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml
+++ b/hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml
@@ -461,5 +461,14 @@
     <Method name="recoverContainersOnNode" />
     <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
   </Match>
-
+  
+  <!-- Following fields are used in ErrorsAndWarningsBlock, which is not a 
part of analysis of findbugs -->
+  <Match>
+    <Class 
name="org.apache.hadoop.yarn.util.Log4jWarningErrorMetricsAppender$Element" />
+    <Or>
+      <Field name="count" />
+      <Field name="timestampSeconds" />
+    </Or>
+    <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
+  </Match>
 </FindBugsFilter>

Reply via email to