ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradhan Yash Sharma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-9839) Using try-with-resources with JDBC objects
Date Tue, 17 Oct 2017 05:20:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-9839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16207021#comment-16207021
] 

Pradhan Yash Sharma commented on OFBIZ-9839:
--------------------------------------------

Hello, 
While I was traversing the code found that these four (getTableNames, getColumnInfo, getIndexInfo,
getReferenceInfo) methods are complicated and need refactoring. Proper resource handling is
required and but due to its complex nature I cannot do it now, I am working in that direction.

> Using try-with-resources with JDBC objects
> ------------------------------------------
>
>                 Key: OFBIZ-9839
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9839
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pradhan Yash Sharma
>            Assignee: Pradhan Yash Sharma
>         Attachments: OFBIZ-9839.patch, OFBIZ-9839.patch
>
>
> Proposal to use try with resources for SQL objects like ResultSet and other objects.
SQL classes have AutoCloseable interface.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message