Description
Below FindBug issue appears in the trunk build
org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics.registerCustomResources() invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead Bug type DM_NUMBER_CTOR (click for details) In class org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics In method org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetrics.registerCustomResources() Called method new Long(long) Should call Long.valueOf(long) instead At QueueMetrics.java:[line 468]