Change in ovirt-engine[ovirt-engine-3.6]: frontend: firstOrDefault should call overloading method

tnisan at redhat.com tnisan at redhat.com
Mon Nov 23 15:11:17 UTC 2015


Tal Nisan has submitted this change and it was merged.

Change subject: frontend: firstOrDefault should call overloading method
......................................................................


frontend: firstOrDefault should call overloading method

This patch adds TruePredicate so that firstOrDefault(source) can call its
overloading method, firstOrDefault(source, predicate), instead of
duplicating the same code.
In addition, it makes firstOrDefault(source, predicate) null safe.

Change-Id: Ia8dfdf8208b3c16f244d03f6a81b478de3e4758f
Related-To: https://bugzilla.redhat.com/1282085
Signed-off-by: Idan Shaby <ishaby at redhat.com>
---
M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/Linq.java
1 file changed, 13 insertions(+), 9 deletions(-)

Approvals:
  Tal Nisan: Looks good to me, approved; Passed CI tests
  Idan Shaby: Verified



-- 
To view, visit https://gerrit.ovirt.org/48989
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia8dfdf8208b3c16f244d03f6a81b478de3e4758f
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Idan Shaby <ishaby at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Idan Shaby <ishaby at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>



More information about the Engine-commits mailing list