cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [15/34] git commit: updated refs/heads/master to 7a57ce3
Date Mon, 15 Jun 2015 09:14:48 GMT
Fix findbugs warning in HypervDirectConnectResource.java Two boxed Longs were being created
instead of simple long

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

This closes #422


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

Branch: refs/heads/master
Commit: 9d2fef0de8174936d1c565a4f5c00314de89d5ba
Parents: 3045755
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:01:22 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:09:34 2015 +0300

----------------------------------------------------------------------
 .../hypervisor/hyperv/resource/HypervDirectConnectResource.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9d2fef0d/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
b/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
index 9f9fcb4..66aa425 100644
--- a/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
+++ b/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
@@ -2081,8 +2081,8 @@ public class HypervDirectConnectResource extends ServerResourceBase
implements S
                 String[] splitResult = result.split(":");
                 int i = 0;
                 while (i < splitResult.length - 1) {
-                    stats[0] += (new Long(splitResult[i++])).longValue();
-                    stats[1] += (new Long(splitResult[i++])).longValue();
+                    stats[0] += Long.parseLong(splitResult[i++]);
+                    stats[1] += Long.parseLong(splitResult[i++]);
                 }
             } catch (Throwable e) {
                 s_logger.warn("Unable to parse return from script return of network usage
command: " + e.toString(), e);


Mime
View raw message