Repository: hadoop
Updated Branches:
  refs/heads/YARN-1011 dece162b0 -> 72534c37a (forced update)


YARN-7764. Findbugs warning: Resource#getResources may expose internal 
representation. Contributed by Weiwei Yang.


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

Branch: refs/heads/YARN-1011
Commit: f7a17b029ddd61ca73c2c2c88f5451dbf05fc501
Parents: 2d06d88
Author: Sunil G <sun...@apache.org>
Authored: Wed Apr 4 09:22:35 2018 +0530
Committer: Sunil G <sun...@apache.org>
Committed: Wed Apr 4 09:22:35 2018 +0530

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f7a17b02/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 81b8825..5841361 100644
--- a/hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml
+++ b/hadoop-yarn-project/hadoop-yarn/dev-support/findbugs-exclude.xml
@@ -658,4 +658,11 @@
     <Bug pattern="NP_NULL_ON_SOME_PATH" />
   </Match>
 
+  <!-- Expose the reference to avoid performance overhead -->
+  <Match>
+    <Class name="org.apache.hadoop.yarn.api.records.Resource" />
+    <Method name="getResources" />
+    <Bug pattern="EI_EXPOSE_REP" />
+  </Match>
+
 </FindBugsFilter>


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to