You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by wa...@apache.org on 2015/04/08 20:02:24 UTC

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

Repository: hadoop
Updated Branches:
  refs/heads/trunk 7af086a51 -> ba9ee22ca


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


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

Branch: refs/heads/trunk
Commit: ba9ee22ca4ed2c5ff447b66b2e2dfe25f6880fe0
Parents: 7af086a
Author: Wangda Tan <wa...@apache.org>
Authored: Wed Apr 8 11:02:06 2015 -0700
Committer: Wangda Tan <wa...@apache.org>
Committed: Wed Apr 8 11:02:06 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/ba9ee22c/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>