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

(cherry picked from commit f7a17b029d)
This commit is contained in:
Sunil G 2018-04-04 09:22:35 +05:30
parent 78832eca8a
commit 1a125dd92f
1 changed files with 7 additions and 0 deletions

View File

@ -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>