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

Hudson commented on LENS-953:
-----------------------------

SUCCESS: Integrated in Lens-Commit #1211 (See 
[https://builds.apache.org/job/Lens-Commit/1211/])
LENS-953: Unclosed InputStream in (rajatgupta59: rev 
e0c495e289a823517ad307ba8504766b7f709a48)
* lens-examples/src/main/java/org/apache/lens/examples/DatabaseUtil.java


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

Reply via email to