HIGUCHI Yuta
Committed by Gerrit Code Review

Remove unnecessary boxing

Change-Id: I78bfbcaf061348172b53bc2ce5c27ff19c1202d2
......@@ -188,9 +188,7 @@ public class TunnelCreateCommand extends AbstractShellCommand {
srcPoint,
dstPoint,
trueType,
new DefaultGroupId(
Integer.valueOf(groupId)
.intValue()),
new DefaultGroupId(Integer.parseInt(groupId)),
producerName,
TunnelName
.tunnelName(tunnelName),
......
......@@ -64,14 +64,14 @@ public final class OpticalPortOperator implements ConfigOperator {
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);
}
......
......@@ -127,7 +127,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical
// FIXME: need to actually reserve the lambda for static lambda's
if (staticLambda != null) {
ochSignal = new OchSignal(Frequency.ofHz(Long.valueOf(staticLambda)),
ochSignal = new OchSignal(Frequency.ofHz(Long.parseLong(staticLambda)),
srcOchPort.lambda().channelSpacing(),
srcOchPort.lambda().slotGranularity());
} else if (!srcOchPort.isTunable() || !dstOchPort.isTunable()) {
......