Fix findbugs warning in NetworkUsageManagerImpl.java Unnecessary boxing/unboxing of long value to create Date

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #433
This commit is contained in:
Rafael da Fonseca 2015-06-14 17:33:05 +02:00 committed by Rohit Yadav
parent d7a27c9572
commit 4d31ed9342
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ public class NetworkUsageManagerImpl extends ManagerBase implements NetworkUsage
s_logger.warn("Last collection time not available. Skipping direct usage collection for Traffic Monitor: " + host.getId());
return false;
}
Date lastCollection = new Date(new Long(lastCollectDetail.getValue()));
Date lastCollection = new Date(Long.parseLong(lastCollectDetail.getValue()));
//Get list of IPs currently allocated
List<IPAddressVO> allocatedIps = listAllocatedDirectIps(zoneId);