cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [13/34] git commit: updated refs/heads/master to 7a57ce3
Date Mon, 15 Jun 2015 09:14:46 GMT
Fix findbugs warning in ClusterManagerImpl.java ManagementServerHostDao.findByMsid takes long
as input, and a boxed Long was being created for it

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

This closes #420


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

Branch: refs/heads/master
Commit: eeeb2bb31d44ce874a206e74d56a93470b505f5d
Parents: e409bc3
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 16:54:12 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:09:29 2015 +0300

----------------------------------------------------------------------
 framework/cluster/src/com/cloud/cluster/ClusterManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/eeeb2bb3/framework/cluster/src/com/cloud/cluster/ClusterManagerImpl.java
----------------------------------------------------------------------
diff --git a/framework/cluster/src/com/cloud/cluster/ClusterManagerImpl.java b/framework/cluster/src/com/cloud/cluster/ClusterManagerImpl.java
index 158a6c3..8c99ff3 100644
--- a/framework/cluster/src/com/cloud/cluster/ClusterManagerImpl.java
+++ b/framework/cluster/src/com/cloud/cluster/ClusterManagerImpl.java
@@ -413,7 +413,7 @@ public class ClusterManagerImpl extends ManagerBase implements ClusterManager,
C
 
     @Override
     public ManagementServerHostVO getPeer(String mgmtServerId) {
-        return _mshostDao.findByMsid(Long.valueOf(mgmtServerId));
+        return _mshostDao.findByMsid(Long.parseLong(mgmtServerId));
     }
 
     @Override


Mime
View raw message