mirror of https://github.com/apache/cloudstack.git
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:
parent
d7a27c9572
commit
4d31ed9342
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue