Change in ovirt-engine[master]: core: FeatureSupported getOrDefault usage

Allon Mureinik has submitted this change and it was merged. Change subject: core: FeatureSupported getOrDefault usage ...................................................................... core: FeatureSupported getOrDefault usage FeatureSupported is in the common module, and as such, it should only use JDK 7 methods (since GWT does not yet support JDK 8 methods, as verified by animal-sniffer). This patch removes the usage of getOrDefault and implements an equivalent logic (under the assumption that the config map may not contain null values) in-place by checking if the value returned from the get method was null or not. Change-Id: Ibb7775796005d8a65f1741e01458589e95f33ac1 Signed-off-by: Allon Mureinik <amureini@redhat.com> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java 1 file changed, 5 insertions(+), 1 deletion(-) Approvals: Allon Mureinik: Verified; Looks good to me, approved; Passed CI tests -- To view, visit https://gerrit.ovirt.org/54973 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibb7775796005d8a65f1741e01458589e95f33ac1 Gerrit-PatchSet: 4 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Ala Hino <ahino@redhat.com> Gerrit-Reviewer: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Arik Hadas <ahadas@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Marek Libra <mlibra@redhat.com> Gerrit-Reviewer: Tal Nisan <tnisan@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
amureini@redhat.com