cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [26/34] git commit: updated refs/heads/master to 7a57ce3
Date Mon, 15 Jun 2015 09:14:59 GMT
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


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4d31ed93
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4d31ed93
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4d31ed93

Branch: refs/heads/master
Commit: 4d31ed9342f337a6633b35763fb3301cebae4929
Parents: d7a27c9
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:33:05 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:09:54 2015 +0300

----------------------------------------------------------------------
 server/src/com/cloud/network/NetworkUsageManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4d31ed93/server/src/com/cloud/network/NetworkUsageManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/NetworkUsageManagerImpl.java b/server/src/com/cloud/network/NetworkUsageManagerImpl.java
index 13eb210..fa4eb16 100644
--- a/server/src/com/cloud/network/NetworkUsageManagerImpl.java
+++ b/server/src/com/cloud/network/NetworkUsageManagerImpl.java
@@ -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);


Mime
View raw message