Change in ovirt-engine[master]: core: FixturesTest closing resources

amureini at redhat.com amureini at redhat.com
Tue Jan 19 15:35:26 UTC 2016


Allon Mureinik has submitted this change and it was merged.

Change subject: core: FixturesTest closing resources
......................................................................


core: FixturesTest closing resources

Used the try-with-resource syntax to ensure that fixturesStream is
properly closed when the setUp() finishes.

This patch solves the Coverity defect CID#1348247.

Change-Id: I7b6702a4aa3e888f78f86fe241172bc25e68d3c6
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/FixturesTest.java
1 file changed, 8 insertions(+), 7 deletions(-)

Approvals:
  Tal Nisan: Looks good to me, approved
  Martin Mucha: Looks good to me, but someone else must approve
  Allon Mureinik: Verified; Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7b6702a4aa3e888f78f86fe241172bc25e68d3c6
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Mucha <mmucha at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list