Sho SHIMIZU
Committed by Ray Milkey

Use auto-unboxing instead of manual unboxing

Change-Id: I50c66b1b63729bff2c4b3416664f391f2e900bd3
......@@ -97,7 +97,7 @@ public class ECMPShortestPathGraph {
}
Integer distance = deviceSearched.get(reachedDevice);
if ((distance != null) && (distance.intValue() < (currDistance + 1))) {
if ((distance != null) && (distance < (currDistance + 1))) {
continue;
}
if (distance == null) {
......@@ -171,7 +171,7 @@ public class ECMPShortestPathGraph {
}
Integer distance = deviceSearched.get(reachedDevice);
if ((distance != null) && (distance.intValue() < (currDistance + 1))) {
if ((distance != null) && (distance < (currDistance + 1))) {
continue;
}
if (distance == null) {
......
......@@ -313,13 +313,13 @@ public class DefaultGroupHandler {
return -1;
} else {
log.debug("getNextObjectiveId in device{}: Next objective id {} "
+ "created for {}", deviceId, nextId.intValue(), ns);
+ "created for {}", deviceId, nextId, ns);
}
} else {
log.trace("getNextObjectiveId in device{}: Next objective id {} "
+ "found for {}", deviceId, nextId.intValue(), ns);
+ "found for {}", deviceId, nextId, ns);
}
return nextId.intValue();
return nextId;
}
/**
......