Jiří Moskovčák has posted comments on this change. Change subject: engine: Improve messages in scheduling ......................................................................
Patch Set 3: Code-Review+1 (1 comment) just a minor nitpick, but I don't insist on changing it, so +1 http://gerrit.ovirt.org/#/c/26620/3/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/scheduling/PerHostMessages.java File backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/scheduling/PerHostMessages.java: Line 39: if (messages.containsKey(hostId)) { Line 40: return messages.get(hostId); Line 41: } Line 42: else { Line 43: return null; if you return empty list here, you can avoid the null checking when calling this function Line 44: } Line 45: } -- To view, visit http://gerrit.ovirt.org/26620 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I0d3c4d50c3a7a8cd11b46b19c1167daace8461be Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Sivák <[email protected]> Gerrit-Reviewer: Doron Fediuck <[email protected]> Gerrit-Reviewer: Gilad Chaplik <[email protected]> Gerrit-Reviewer: Jiří Moskovčák <[email protected]> Gerrit-Reviewer: Kobi Ianko <[email protected]> Gerrit-Reviewer: Martin Sivák <[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
