[ 
https://issues.apache.org/jira/browse/LENS-953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated LENS-953:
------------------------
    Description: 
Here is related code:
{code}
    InputStream file = 
DatabaseUtil.class.getClassLoader().getResourceAsStream("db-storage-schema.sql");
    BufferedReader reader = new BufferedReader(new InputStreamReader(file, 
"UTF-8"));
{code}

Neither file nor reader is closed upon exit from the method.

  was:
Here is related code:
{code}
    InputStream file = 
DatabaseUtil.class.getClassLoader().getResourceAsStream("db-storage-schema.sql");
    BufferedReader reader = new BufferedReader(new InputStreamReader(file, 
"UTF-8"));
{code}
Neither file nor reader is closed upon exit from the method.


> Unclosed InputStream in DatabaseUtil#initializeDatabaseStorage()
> ----------------------------------------------------------------
>
>                 Key: LENS-953
>                 URL: https://issues.apache.org/jira/browse/LENS-953
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: client
>            Reporter: Ted Yu
>            Priority: Minor
>
> Here is related code:
> {code}
>     InputStream file = 
> DatabaseUtil.class.getClassLoader().getResourceAsStream("db-storage-schema.sql");
>     BufferedReader reader = new BufferedReader(new InputStreamReader(file, 
> "UTF-8"));
> {code}
> Neither file nor reader is closed upon exit from the method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to