Skip to content

Commit b9b13d7

Browse files
rsafonsecaDaanHoogland
authored andcommitted
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 apache#367
1 parent 039d632 commit b9b13d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/network-elements/juniper-srx/src/com/cloud/network/resource/JuniperSrxResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ private void removeDestinationNatRules(Long privateVlanTag, Map<String, Long> pu
12771277
for (String[] destNatRule : destNatRules) {
12781278
String publicIp = destNatRule[0];
12791279
String privateIp = destNatRule[1];
1280-
int srcPort = Integer.valueOf(destNatRule[2]);
1281-
int destPort = Integer.valueOf(destNatRule[3]);
1280+
int srcPort = Integer.parseInt(destNatRule[2]);
1281+
int destPort = Integer.parseInt(destNatRule[3]);
12821282

12831283
Long publicVlanTag = null;
12841284
if (publicVlanTags.containsKey(publicIp)) {

0 commit comments

Comments
 (0)