You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/02/12 04:46:18 UTC
[jira] [Created] (LENS-953) Unclosed InputStream in
DatabaseUtil#initializeDatabaseStorage()
Ted Yu created LENS-953:
---------------------------
Summary: Unclosed InputStream in DatabaseUtil#initializeDatabaseStorage()
Key: LENS-953
URL: https://issues.apache.org/jira/browse/LENS-953
Project: Apache Lens
Issue Type: Bug
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)