YARN-9915: Fix FindBug issue in QueueMetrics. Contributed by Prabhu Joseph.

(cherry picked from commit 83d148074f)
This commit is contained in:
Eric E Payne 2019-10-21 20:30:50 +00:00
parent 0f64ed89d2
commit ea574087d1
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ public class QueueMetrics implements MetricsSource {
2; i < resources.length; i++) {
ResourceInformation resource =
resources[i];
customResources.put(resource.getName(), new Long(0));
customResources.put(resource.getName(), Long.valueOf(0));
}
registerCustomResources(customResources, ALLOCATED_RESOURCE_METRIC_PREFIX,