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

This commit is contained in:
Sunil G 2018-04-04 09:22:35 +05:30
parent 2d06d885c8
commit f7a17b029d

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>