YARN-7764. Findbugs warning: Resource#getResources may expose internal representation. Contributed by Weiwei Yang.
This commit is contained in:
parent
2d06d885c8
commit
f7a17b029d
@ -658,4 +658,11 @@
|
|||||||
<Bug pattern="NP_NULL_ON_SOME_PATH" />
|
<Bug pattern="NP_NULL_ON_SOME_PATH" />
|
||||||
</Match>
|
</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>
|
</FindBugsFilter>
|
||||||
|
Loading…
Reference in New Issue
Block a user