[
https://issues.apache.org/jira/browse/OFBIZ-9841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203584#comment-16203584 ]
Pradhan Yash Sharma commented on OFBIZ-9841:
--------------------------------------------
Added AutoCloseable interface to SQLProcessor class and overridden Close method, Added closing of ResultSet, PreparedStatement and Connection Objects.
While calling SQLProcessor object in GenericDAO used Try-with-Resources and removed unnecessary calls of the same object before actual use, also removed finally blocks for method invocation.
> Implement AutoCloseable interface in SQLProcessor Class
> -------------------------------------------------------
>
> Key: OFBIZ-9841
> URL:
https://issues.apache.org/jira/browse/OFBIZ-9841> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Trunk
> Reporter: Pradhan Yash Sharma
> Assignee: Pradhan Yash Sharma
> Priority: Critical
> Fix For: Trunk
>
> Attachments: OFBIZ-9841.patch, OFBIZ-9841.patch
>
>
> Implement SQLProcessor class with the AutoCloseable interface.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)