Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F3B3218D1F for ; Mon, 15 Jun 2015 09:14:41 +0000 (UTC) Received: (qmail 93460 invoked by uid 500); 15 Jun 2015 09:14:35 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 93338 invoked by uid 500); 15 Jun 2015 09:14:35 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 92792 invoked by uid 99); 15 Jun 2015 09:14:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2015 09:14:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A9254E0426; Mon, 15 Jun 2015 09:14:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bhaisaab@apache.org To: commits@cloudstack.apache.org Date: Mon, 15 Jun 2015 09:14:57 -0000 Message-Id: <26fecb858fe34f17b53f4c7f9c65b6a1@git.apache.org> In-Reply-To: <03983ad0411445f184514074063a3185@git.apache.org> References: <03983ad0411445f184514074063a3185@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [24/34] git commit: updated refs/heads/master to 7a57ce3 Fix findbugs warning in CloudZonesStartupProcessor.java Unnecessary boxing/unboxing of primitive value Signed-off-by: Rohit Yadav 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 Authored: Sun Jun 14 17:27:45 2015 +0200 Committer: Rohit Yadav 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);