Fixes "a bunch of small leaks (closes missing, reported as warnings in Eclipse)" - https://issues.apache.org/jira/browse/OFBIZ-8115

Fixes a bunch of small leaks (closes missing, only warnings in Eclipse)
By-product: automatically sort few imports

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2016-09-02 10:07:31 +00:00
parent 44df371581
commit 6636d4ae01
5 changed files with 26 additions and 19 deletions
@@ -1883,6 +1883,7 @@ public class DatabaseUtil {
try {
stmt = connection.createStatement();
stmt.executeUpdate(sql2);
stmt.close();
} catch (SQLException e2) {
// if this also fails report original error, not this error...
return "SQL Exception while executing the following:\n" + sql + "\nError was: " + e.toString();