Committed by
Gerrit Code Review
Use auto unboxing
Change-Id: Ia810b0a003cce6b36731bc059836f67ddfe087f7
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -82,7 +82,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { | ... | @@ -82,7 +82,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { |
82 | PolicyGroupIdentifier previousGroupkey = null; | 82 | PolicyGroupIdentifier previousGroupkey = null; |
83 | DeviceId neighbor = portDeviceMap.get(sp); | 83 | DeviceId neighbor = portDeviceMap.get(sp); |
84 | for (int idx = 0; idx < param.getLabelStack().size(); idx++) { | 84 | for (int idx = 0; idx < param.getLabelStack().size(); idx++) { |
85 | - int label = param.getLabelStack().get(idx).intValue(); | 85 | + int label = param.getLabelStack().get(idx); |
86 | if (idx == (labelStackSize - 1)) { | 86 | if (idx == (labelStackSize - 1)) { |
87 | // Innermost Group | 87 | // Innermost Group |
88 | GroupBucketIdentifier bucketId = | 88 | GroupBucketIdentifier bucketId = |
... | @@ -134,7 +134,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { | ... | @@ -134,7 +134,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { |
134 | } else { | 134 | } else { |
135 | int label = -1; | 135 | int label = -1; |
136 | if (labelStackSize == 1) { | 136 | if (labelStackSize == 1) { |
137 | - label = param.getLabelStack().get(0).intValue(); | 137 | + label = param.getLabelStack().get(0); |
138 | } | 138 | } |
139 | for (PortNumber sp : ports) { | 139 | for (PortNumber sp : ports) { |
140 | GroupBucketIdentifier bucketId = | 140 | GroupBucketIdentifier bucketId = |
... | @@ -271,7 +271,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { | ... | @@ -271,7 +271,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { |
271 | for (PortNumber sp : ports) { | 271 | for (PortNumber sp : ports) { |
272 | PolicyGroupIdentifier previousGroupkey = null; | 272 | PolicyGroupIdentifier previousGroupkey = null; |
273 | for (int idx = 0; idx < param.getLabelStack().size(); idx++) { | 273 | for (int idx = 0; idx < param.getLabelStack().size(); idx++) { |
274 | - int label = param.getLabelStack().get(idx).intValue(); | 274 | + int label = param.getLabelStack().get(idx); |
275 | if (idx == (labelStackSize - 1)) { | 275 | if (idx == (labelStackSize - 1)) { |
276 | // Innermost Group | 276 | // Innermost Group |
277 | GroupBucketIdentifier bucketId = | 277 | GroupBucketIdentifier bucketId = |
... | @@ -303,7 +303,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { | ... | @@ -303,7 +303,7 @@ public class PolicyGroupHandler extends DefaultGroupHandler { |
303 | } else { | 303 | } else { |
304 | int label = -1; | 304 | int label = -1; |
305 | if (labelStackSize == 1) { | 305 | if (labelStackSize == 1) { |
306 | - label = param.getLabelStack().get(0).intValue(); | 306 | + label = param.getLabelStack().get(0); |
307 | } | 307 | } |
308 | for (PortNumber sp : ports) { | 308 | for (PortNumber sp : ports) { |
309 | GroupBucketIdentifier bucketId = | 309 | GroupBucketIdentifier bucketId = | ... | ... |
-
Please register or login to post a comment