Moti Asayag has posted comments on this change.

Change subject: core: coverity issue fix.
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.ovirt.org/#/c/31206/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/macpoolmanager/MacsStorage.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/macpoolmanager/MacsStorage.java:

Line 63: 
Line 64:         final List<Long> result = new ArrayList<>(numberOfMacs);
Line 65:         int remainingMacs = numberOfMacs;
Line 66:         while (remainingMacs > 0) {
Line 67:             final Range rangeWithAvailableMac = 
getRangeWithAvailableMac(true);
i.e. :
  final Range rangeWithAvailableMac = getRangeWithAvailableMac();
  Validate.notNull(rangeWithAvailableMac);
Line 68:             final List<Long> allocatedMacs = 
rangeWithAvailableMac.allocateMacs(remainingMacs);
Line 69: 
Line 70:             remainingMacs -= allocatedMacs.size();
Line 71:             result.addAll(allocatedMacs);


-- 
To view, visit http://gerrit.ovirt.org/31206
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Id8a06231c6151530ff6c0fee9614b45f39c3a1dd
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Mucha <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Lior Vernia <[email protected]>
Gerrit-Reviewer: Martin Mucha <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Yevgeny Zaspitsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to