BF [ 1874419 ] JDBC Statement not close in a finally block
This commit is contained in:
parent
070b7a20ea
commit
071d9768d8
|
@ -98,7 +98,7 @@ public class MRule extends X_AD_Rule
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
DB.close(rs, pstmt);
|
DB.close(rs, pstmt);
|
||||||
pstmt = null;
|
rs = null; pstmt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (retValue != null)
|
if (retValue != null)
|
||||||
|
@ -137,7 +137,7 @@ public class MRule extends X_AD_Rule
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
DB.close(rs, pstmt);
|
DB.close(rs, pstmt);
|
||||||
pstmt = null;
|
rs = null; pstmt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rules != null && rules.size() > 0)
|
if (rules != null && rules.size() > 0)
|
||||||
|
|
|
@ -80,7 +80,7 @@ public class MTableScriptValidator extends X_AD_Table_ScriptValidator
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
DB.close(rs, pstmt);
|
DB.close(rs, pstmt);
|
||||||
pstmt = null;
|
rs = null; pstmt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mvrs != null && mvrs.size() > 0)
|
if (mvrs != null && mvrs.size() > 0)
|
||||||
|
|
Loading…
Reference in New Issue