commit | 4346d607c67658ffc6ba9effc91ab94967b7f8a2 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Mon Aug 24 18:11:56 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Aug 25 16:35:44 2015 +0000 |
tree | f87bc843d22b465dd0af19710c3fbee0dbb71c64 | |
parent | cf732fb6889429722b180591a6118a6c0af18ab5 [diff] |
Avoid unnecessary unboxing Change-Id: I8f4b0e11bbd236553df1a392700bf40c900c3456
diff --git a/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java b/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java index 30c7526..0eaf5cd 100644 --- a/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java +++ b/drivers/src/main/java/org/onosproject/driver/ovsdb/OvsdbBridgeConfig.java
@@ -124,7 +124,7 @@ String ip = deviceId.toString().substring(fistColon + 1, lastColon); String port = deviceId.toString().substring(lastColon + 1); IpAddress ipAddress = IpAddress.valueOf(ip); - long portL = Long.valueOf(port).longValue(); + long portL = Long.parseLong(port); return new OvsdbNodeId(ipAddress, portL); }