Change in ovirt-engine[master]: restapi: refactor findCurrentNetwork to use Java8 streams API

juan.hernandez at redhat.com juan.hernandez at redhat.com
Sun May 8 08:51:00 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: refactor findCurrentNetwork to use Java8 streams API
......................................................................


restapi: refactor findCurrentNetwork to use Java8 streams API

Refactor findCurrentNetwork method so that won't return null literally.
That should mak code more readable and should make
Coverity happier (CID 1353712).

Change-Id: I828b935ff83d238197c69756dcd16ecf9f201074
Signed-off-by: Yevgeny Zaspitsky <yzaspits at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/openstack/BackendOpenStackNetworkResource.java
1 file changed, 16 insertions(+), 11 deletions(-)

Approvals:
  Juan Hernandez: Looks good to me, approved
  Jenkins CI: Passed CI tests
  Yevgeny Zaspitsky: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I828b935ff83d238197c69756dcd16ecf9f201074
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yevgeny Zaspitsky <yzaspits at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Marcin Mirecki <mmirecki at redhat.com>
Gerrit-Reviewer: Yevgeny Zaspitsky <yzaspits at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list