Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
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());
inputStream should be closed in finally block.