cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [24/34] git commit: updated refs/heads/master to 7a57ce3
Date Mon, 15 Jun 2015 09:14:57 GMT
Fix findbugs warning in CloudZonesStartupProcessor.java Unnecessary boxing/unboxing of primitive
value

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

This closes #431


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

Branch: refs/heads/master
Commit: e831fce1b920e4b97e9a5bb09d430a221a55ae43
Parents: 62e78cd
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:27:45 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:09:50 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e831fce1/server/src/com/cloud/hypervisor/CloudZonesStartupProcessor.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/hypervisor/CloudZonesStartupProcessor.java b/server/src/com/cloud/hypervisor/CloudZonesStartupProcessor.java
index e7c38c9..d407b84 100644
--- a/server/src/com/cloud/hypervisor/CloudZonesStartupProcessor.java
+++ b/server/src/com/cloud/hypervisor/CloudZonesStartupProcessor.java
@@ -178,7 +178,7 @@ public class CloudZonesStartupProcessor extends AdapterBase implements
StartupCo
         long zoneId = zone.getId();
         ResourceDetail maxHostsInZone = _zoneDetailsDao.findDetail(zoneId, ZoneConfig.MaxHosts.key());
         if (maxHostsInZone != null) {
-            long maxHosts = new Long(maxHostsInZone.getValue()).longValue();
+            long maxHosts = Long.parseLong(maxHostsInZone.getValue());
             long currentCountOfHosts = _hostDao.countRoutingHostsByDataCenter(zoneId);
             if (s_logger.isDebugEnabled()) {
                 s_logger.debug("Number of hosts in Zone:" + currentCountOfHosts + ", max
hosts limit: " + maxHosts);


Mime
View raw message