Ted Yu created BLUR-389:
---------------------------
Summary: 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
{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)