Allon Mureinik has submitted this change and it was merged. Change subject: tools: don't rely on Connection.isValid() ......................................................................
tools: don't rely on Connection.isValid() Patch 9f856a6234566a2ab648ef580fa102192ec43b10 refactored StandaloneDataSource.checkConnection() to use Connection.isValid() in order to avoid a FindBugs warning on an unused function result. Apparently, this approach is problematic since the PostgreSQL JDBC driver we're using does not implement isValid(). This patch reverts 9f856a6234566a2ab648ef580fa102192ec43b10 and proposes a different way to avoid the FindBugs warning. Change-Id: Ic4f1fe6a9981c6fe8764a803eda4de5d51cc2b6e Signed-off-by: Allon Mureinik <[email protected]> --- M backend/manager/tools/src/main/java/org/ovirt/engine/core/tools/common/db/StandaloneDataSource.java 1 file changed, 20 insertions(+), 4 deletions(-) Approvals: Allon Mureinik: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/12812 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic4f1fe6a9981c6fe8764a803eda4de5d51cc2b6e Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: Juan Hernandez <[email protected]> Gerrit-Reviewer: Moti Asayag <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
