cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 9bac84a
Date Mon, 08 Jun 2015 07:38:56 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 38c269d71 -> 9bac84a3f


Fix last ocurrence of unnecessary boxing detected by findbugs CiscoVnmcResource.java:266,
DM_BOXED_PRIMITIVE_FOR_PARSING, Priority: High Boxing/unboxing to parse a primitive com.cloud.network.resource.CiscoVnmcResource.getIpRangeFromCidr(String)

Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>

This closes #368


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

Branch: refs/heads/master
Commit: 9bac84a3f7054401588e8eacc28668fe0c6959db
Parents: 38c269d
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 7 21:41:23 2015 +0200
Committer: Daan Hoogland <daan.hoogland@gmail.com>
Committed: Mon Jun 8 09:39:02 2015 +0200

----------------------------------------------------------------------
 .../src/com/cloud/network/resource/CiscoVnmcResource.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9bac84a3/plugins/network-elements/cisco-vnmc/src/com/cloud/network/resource/CiscoVnmcResource.java
----------------------------------------------------------------------
diff --git a/plugins/network-elements/cisco-vnmc/src/com/cloud/network/resource/CiscoVnmcResource.java
b/plugins/network-elements/cisco-vnmc/src/com/cloud/network/resource/CiscoVnmcResource.java
index 44260e4..4b8ee6f 100644
--- a/plugins/network-elements/cisco-vnmc/src/com/cloud/network/resource/CiscoVnmcResource.java
+++ b/plugins/network-elements/cisco-vnmc/src/com/cloud/network/resource/CiscoVnmcResource.java
@@ -263,7 +263,7 @@ public class CiscoVnmcResource implements ServerResource {
         String[] result = new String[2];
         String[] cidrData = cidr.split("\\/");
         assert (cidrData.length == 2) : "Something is wrong with source cidr " + cidr;
-        long size = Long.valueOf(cidrData[1]);
+        long size = Long.parseLong(cidrData[1]);
         result[0] = cidrData[0];
         result[1] = cidrData[0];
         if (size < 32) {


Mime
View raw message