You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Pradhan Yash Sharma (JIRA)" <ji...@apache.org> on 2017/10/13 13:50:00 UTC

[jira] [Commented] (OFBIZ-9841) Implement AutoCloseable interface in SQLProcessor Class

    [ 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)