incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron McCurry (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (BLUR-389) InputStream may not be closed upon return from EnqueueDataAsync#loadWords()
Date Thu, 06 Nov 2014 02:26:33 GMT

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

Aaron McCurry closed BLUR-389.
------------------------------
       Resolution: Fixed
    Fix Version/s: 0.2.4

https://git-wip-us.apache.org/repos/asf?p=incubator-blur.git;a=commit;h=eec9d49e9dc295b4150d5d1f80146418ac7701a8

> InputStream may not be closed upon return from EnqueueDataAsync#loadWords()
> ---------------------------------------------------------------------------
>
>                 Key: BLUR-389
>                 URL: https://issues.apache.org/jira/browse/BLUR-389
>             Project: Apache Blur
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>             Fix For: 0.2.4
>
>
> {code}
>     InputStream inputStream = EnqueueDataAsync.class.getResourceAsStream("words.txt");
>     BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
>     String word;
>     while ((word = reader.readLine()) != null) {
>       words.add(word.trim());
> {code}
> inputStream should be closed in finally block.



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

Mime
View raw message