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

View File

@ -465,7 +465,7 @@ private void registerCustomResources() {
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,