mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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
This commit is contained in:
parent
38c269d71e
commit
9bac84a3f7
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user