You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Archana H (JIRA)" <ji...@apache.org> on 2016/09/01 08:20:20 UTC
[jira] [Closed] (LENS-953) Unclosed InputStream in
DatabaseUtil#initializeDatabaseStorage()
[ https://issues.apache.org/jira/browse/LENS-953?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Archana H closed LENS-953.
--------------------------
> 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
> Assignee: Ajay Yadava
> Priority: Minor
> Fix For: 2.6
>
> Attachments: LENS-953-v1.patch, LENS-953.patch
>
>
> 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)