You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/06/15 11:14:46 UTC

[13/34] git commit: updated refs/heads/master to 7a57ce3

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 <ro...@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 <rs...@gmail.com>
Authored: Sun Jun 14 16:54:12 2015 +0200
Committer: Rohit Yadav <ro...@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