(cherry picked from commit f7a17b029ddd61ca73c2c2c88f5451dbf05fc501)
@@ -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>