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

This commit is contained in:
Eric E Payne 2019-10-21 20:30:50 +00:00
parent 3f7756dc6c
commit 83d148074f
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,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,