Oved Ourfali has posted comments on this change.

Change subject: findbugs: Method fail to close stream
......................................................................


Patch Set 1: I would prefer that you didn't submit this

(1 inline comment)

....................................................
File 
backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/BaseDAOTestCase.java
Line 112:             String schemaNamePostfix = job + number;
Line 113:             InputStream is = 
BaseDAOTestCase.class.getResourceAsStream(
Line 114:             "/test-database.properties");
Line 115:             properties.load(is);
Line 116:             is.close();
Shouldn't it be done in the finally block?
Line 117:             ClassLoader.getSystemClassLoader().loadClass(
Line 118:                     properties.getProperty("database.driver"));
Line 119:             String dbUrl = properties.getProperty("database.url") + 
schemaNamePostfix;
Line 120:             result = new SingleConnectionDataSource(


--
To view, visit http://gerrit.ovirt.org/14037
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I5bea678c1aaeeb6dfe92b16e380e4bc631e3d09c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <shav...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to