Fix another case of unnecessary boxing JuniperSrxResource.java:1280, DM_BOXED_PRIMITIVE_FOR_PARSING, Priority: High Boxing/unboxing to parse a primitive com.cloud.network.resource.JuniperSrxResource.removeDestinationNatRules(Long, Map, List)

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

This closes #367
This commit is contained in:
Rafael da Fonseca 2015-06-07 21:38:01 +02:00 committed by Daan Hoogland
parent 039d632ad3
commit b9b13d764d

View File

@ -1277,8 +1277,8 @@ public class JuniperSrxResource implements ServerResource {
for (String[] destNatRule : destNatRules) {
String publicIp = destNatRule[0];
String privateIp = destNatRule[1];
int srcPort = Integer.valueOf(destNatRule[2]);
int destPort = Integer.valueOf(destNatRule[3]);
int srcPort = Integer.parseInt(destNatRule[2]);
int destPort = Integer.parseInt(destNatRule[3]);
Long publicVlanTag = null;
if (publicVlanTags.containsKey(publicIp)) {