Remove unnecessary boxing

Change-Id: I78bfbcaf061348172b53bc2ce5c27ff19c1202d2
diff --git a/core/net/src/main/java/org/onosproject/net/device/impl/OpticalPortOperator.java b/core/net/src/main/java/org/onosproject/net/device/impl/OpticalPortOperator.java
index ca43f95..af0092d 100644
--- a/core/net/src/main/java/org/onosproject/net/device/impl/OpticalPortOperator.java
+++ b/core/net/src/main/java/org/onosproject/net/device/impl/OpticalPortOperator.java
@@ -64,14 +64,14 @@
         if (port == null) {
             // try to get the portNumber from the numName.
             if (!numName.isEmpty()) {
-                final long pn = Long.valueOf(numName);
+                final long pn = Long.parseLong(numName);
                 newPort = (!name.isEmpty()) ? PortNumber.portNumber(pn, name) : PortNumber.portNumber(pn);
             } else {
                 // we don't have defining info (a port number value)
                 throw new RuntimeException("Possible misconfig, bailing on handling for: \n\t" + descr);
             }
         } else if ((!name.isEmpty()) && !name.equals(port.name())) {
-            final long pn = (numName.isEmpty()) ? port.toLong() : Long.valueOf(numName);
+            final long pn = (numName.isEmpty()) ? port.toLong() : Long.parseLong(numName);
             newPort = PortNumber.portNumber(pn, name);
         }