Committed by
Gerrit Code Review
Avoid unnecessary unboxing
Change-Id: I8f4b0e11bbd236553df1a392700bf40c900c3456
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -124,7 +124,7 @@ public class OvsdbBridgeConfig extends AbstractHandlerBehaviour | ... | @@ -124,7 +124,7 @@ public class OvsdbBridgeConfig extends AbstractHandlerBehaviour |
124 | String ip = deviceId.toString().substring(fistColon + 1, lastColon); | 124 | String ip = deviceId.toString().substring(fistColon + 1, lastColon); |
125 | String port = deviceId.toString().substring(lastColon + 1); | 125 | String port = deviceId.toString().substring(lastColon + 1); |
126 | IpAddress ipAddress = IpAddress.valueOf(ip); | 126 | IpAddress ipAddress = IpAddress.valueOf(ip); |
127 | - long portL = Long.valueOf(port).longValue(); | 127 | + long portL = Long.parseLong(port); |
128 | return new OvsdbNodeId(ipAddress, portL); | 128 | return new OvsdbNodeId(ipAddress, portL); |
129 | } | 129 | } |
130 | 130 | ... | ... |
-
Please register or login to post a comment