Roy Golan has submitted this change and it was merged.
Change subject: core: PowerSavingBalancePolicyUnit streaming API usage
......................................................................
core: PowerSavingBalancePolicyUnit streaming API usage
Replace the old-fashioned LinqUtils usage with the modern, built-in
streaming API introduced in Java 8.
This patch does not only replace an outdated syntax with a more modern
one, it also offers a (theoretical) performance improvement by using
findFirst's short-circuiting termination logic and stopping the
iteration once a host that fulfils the conditions is found.
This patch is part of the effort to remove LinqUtils completely.
Change-Id: I11ee8d61155c7e15b2a7a27ffe59872ad4d7fd4a
Signed-off-by: Allon Mureinik <amureini(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/policyunits/PowerSavingBalancePolicyUnit.java
1 file changed, 9 insertions(+), 12 deletions(-)
Approvals:
Allon Mureinik: Verified
Roy Golan: Looks good to me, approved; Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/48905
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I11ee8d61155c7e15b2a7a27ffe59872ad4d7fd4a
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Roy Golan <rgolan(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>